|Re: help to execute .jar in console [message #693892 is a reply to message #693188]
||Thu, 07 July 2011 13:06
Registered: July 2009
What is the command you are using to execute?
You need to include swt.jar in the classpath.
For example: java -classpath <path to swt.jar>/swt.jar <Main class>
Another thing you can do is to use eclipse to export the project as a Runnable jar file and include the required libraries in the generated jar.
Then you can execute the jar file using java -jar <jar file>
Lakshmi P Shanmugam
Powered by FUDForum
. Page generated in 0.01996 seconds