I've seen a few demo's were they have made executable jars. How can these
be created?
thanks for your time,
goodnick
Printable View
I've seen a few demo's were they have made executable jars. How can these
be created?
thanks for your time,
goodnick
You need to create a manifest file.
A sample file would be like
Manifest-Version: 1.0
Created by: Your name
Main-Class: myPath.to.your.Main
Classpath:
Save this file as MANIFEST.MF in a directory called META-INF. The
Main-Class you define is your java class that has public static void
main(String[] args) where the entire app will run from.
Your directory structure will look like this
/
/myPath/to/your/Main
/META-INF/MANIFEST.MF
jar this up by typing
jar cvfM myApp.jar myPath META-INF
now to run the app type
java -jar myApp.jar
Hope this helps..
-Patrick
goodnick wrote:
>
> I've seen a few demo's were they have made executable jars. How can these
> be created?
>
> thanks for your time,
>
> goodnick