本文介绍了从Eclipse访问jython jar中的python文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从事一个涉及Java和Python的项目。长篇小说,我遵循一些发布的方式访问通过将文件打包成jython jar并将其导入到Java项目中,从Java的Python文件。
而不是使用java -jar jython.jar 运行 .py调用运行 .py,任何人都知道有没有办法从Eclipse调用该文件(假设我已经将jython.jar添加到我的构建路径中了)
非常感谢!
解决方案在浏览器的条目栏中拖动此图像。 PythonInterpreter code> test.py 。
I'm currently working on a project involve Java and Python. Long story short, I followed some post on ways to access Python file from Java by packaging the file into a jython jar and import into the Java project.
Instead of using "java -jar jython.jar run.py" to call the run.py, anybody know if there is way to call the file from Eclipse (assuming I already add the jython.jar into to my build path?
Thank you so much!
解决方案Drag this image in the entry bar in your browser. The PythonInterpreter executes test.py.
更多推荐
从Eclipse访问jython jar中的python文件?
发布评论