[RESOLVED] How to package a JSwing app?
Hey,
I am used to writing Java programs which run on a command line.
I normally make a jar file and run this command in unix:
java -jar myapp.jar
to run the file...
I have wrote a Java Swing app for the first time and am wondering how I package this up for users to be able to run it?
jar files don't seem to do it.
Any ideas? :confused:
Thanks for the help! :thumb:
Re: How to package a JSwing app?
JAR files are executables, users only need the JRE to run them
Re: How to package a JSwing app?
Yeah,
So can a Swing application be packaged into a Jar and run in the same way?
I've tried this already but doesn't seem to work.
How else can a Swing app be executed?
Re: How to package a JSwing app?
Quote:
So can a Swing application be packaged into a Jar and run in the same way?
Yes, you just need to use the command line correctly.
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ .
Re: How to package a JSwing app?