tags:

views:

188

answers:

2

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
Thanks Vinay , let me check this.
om
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
Thanks Nico for help
om
no problem, would you mind upvoting or accepting either my or Vinay's answers ? it helps people with the same question in the future to see that there is an accepted answer.thanks N
Nico