Java - 从命令行构建和运行eclipse项目 [英] Java - Build and run eclipse project from command line
问题描述
我是两个shell命令和java的初学者。
你能否给我一个有关这个问题的答案的有用链接,或也许是一个如何做的一个说明?
Maven或Ant是最好的选择,但对于一个只有解决方案
您可以选择文件 - >导出,然后选择 Java - > Runnable JAR文件
将 JAR文件转移到其他机器,然后从命令行运行:
java -jar YOUR.JAR
I have a java project written using eclipse ide and I want to run it through ssh on a different machine, but I have to do this using the command line and I don't know exactly how.
I am a beginner at both shell commands and java.
Could you please give me a useful link with answers regarding this question, or perhaps a set instructions of how to do this?
Maven or Ant are the best option but for an Eclipse-only solution
you can choose File -> Export and select Java -> Runnable JAR File
then transfer the JAR file to your other machine and run this from the command line:
java -jar YOUR.JAR
这篇关于Java - 从命令行构建和运行eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!