简体   繁体   中英

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. How to set up the run command and appoint the eclipse and the java project.

You can export the code in eclipse to an executable .jar file and run it on console. To execute the .jar file in for Example the cmd, you need the path of the package. An example could be: java -Xmx1024m -jar /path/to/the/jar.jar .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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