如何在命令提示符中运行包含Python文件的Java Jar文件。

huangapple 未分类评论50阅读模式
英文:

How to run java jar which includes python file using command promt

问题

我从我的Java类中调用.py文件。我在eclipse的市场中使用了pyDev Python解释器。当我在eclipse的Java主方法中调用时,我能够从.py文件中获取输出。
现在我已经创建了该Maven项目的jar文件,并尝试使用命令提示符执行jar文件。但我没有从.py文件中获得结果。
我应该如何获得那个输出。

英文:

I am calling .py file from my Java class. I used pyDev python interpreter from marketplace in eclipse. When I am calling from java main method in eclipse, I am able to get output from .py file.
Now I have created jar file of that maven project and trying to execute jar using command prompt. But I am not getting results from .py file.
How should I get that output.

huangapple
  • 本文由 发表于 2020年5月29日 21:23:44
  • 转载请务必保留本文链接:https://java.coder-hub.com/62087034.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定