从Eclipse访问jython jar中的python文件?

编程入门 行业动态 更新时间:2024-10-26 01:18:10
本文介绍了从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文件?

本文发布于:2023-10-07 17:41:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1470062.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   jython   Eclipse   python   jar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!