View Single Post
  #11 (permalink)  
Old 02-06-2009, 08:54 AM
toadaly toadaly is offline
Senior Member
 
Join Date: Jan 2009
Posts: 360
Rep Power: 2
toadaly is on a distinguished road
Default
It sounds like you are wanting an executable jar file. To create that, you have to include a manifest with your 'jar' command that defines the class with 'main' in it.

Suppose 'manifest' had contents:
Main-class: MyMain

and suppose your main class was called MyMain. Then to create an executable jar file:

jar cmf manifest myExecutableJarFile.jar *.class
Reply With Quote