|
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
|