Hello, I have created one Java desktop application.I have to run it from command line How should I do that ?
+1
A:
In the same way as you would run any other Java application from the command line. Depending on how it's packaged,
java -cp <classpath> fully.qualified.class.name
or
java -cp <classpath> -jar myapp.jar
Vinay Sajip
2009-09-08 13:50:28
Thanks Vinay , let me check this.
om
2009-09-09 05:00:15
A:
also.. when you right click on your project and say clean and build you should get something like this
To run this application from the command line without Ant, try: java -jar "/home/nico/Workspace/testApplication1/dist/testApplication1.jar"
in the output window :)
Nico
2009-09-08 19:01:06