I have a package and want to create executable JAR for it.
Please advice. Any reference tutorial will be highly appreciated.
Chao.
Printable View
I have a package and want to create executable JAR for it.
Please advice. Any reference tutorial will be highly appreciated.
Chao.
You need to add a manifest file when you creating the jar file. This manifest file should tell what is the main class of your jar file.
manifest file is also a text file. Am I supposed to follow some syntax?
An example your manifest can be something like:
The Main-Class tells which class is the entry point to you application.Code:Manifest-Version: 1.0
Created-By: 1.6.0 (Sun Microsystems Inc.)
Main-Class: packagename.classname
Thanks all of you. It helped.