从Eclipse访问jython jar中的python文件? [英] Access a python file in a jython jar from Eclipse?
本文介绍了从Eclipse访问jython jar中的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文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文