Access a python file in a jython jar from Eclipse?

感情迁移 提交于 2019-12-12 05:35:07

问题


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!


回答1:


Drag this image in the entry bar in your browser. The PythonInterpreter executes test.py.



来源:https://stackoverflow.com/questions/28120716/access-a-python-file-in-a-jython-jar-from-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!