简体   繁体   English

如何通过命令行开始在Eclipse中运行?

[英]How to start run in eclipse by command line?

Is there anyway that I can start the run in eclipse by command line to run the java code in locate project, just like using the run button of eclipse. 无论如何,我可以通过命令行在eclipse中启动运行以在locate项目中运行Java代码,就像使用eclipse的运行按钮一样。 How to set up the run command and appoint the eclipse and the java project. 如何设置运行命令并指定Eclipse和Java项目。

You can export the code in eclipse to an executable .jar file and run it on console. 您可以将eclipse中的代码导出到可执行的.jar文件中,然后在控制台上运行它。 To execute the .jar file in for Example the cmd, you need the path of the package. 要在Example cmd中执行.jar文件,您需要包的路径。 An example could be: java -Xmx1024m -jar /path/to/the/jar.jar . 一个示例可以是: java -Xmx1024m -jar /path/to/the/jar.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM