Re: opening an eclipse .jar file
- From: "Thorgull" <thorgull@xxxxxxxxx>
- Date: 16 Aug 2006 22:09:55 -0700
If you want the quick and easy solution look at this eclipse plugin :
FatJar ( http://fjep.sourceforge.net/ )
This plugin add a command in the context menu of projet ("build fat
jar" or something like that). this command create a jar file with a
manifest and include all dependencies of your project in the jar. The
plugin has a lot of options but the default one's will be just fine in
your case. (just click next next next ...)
To run a jar by double clicking on it in windows you need to associate
the files *.jar with the command "$JAVA_HOME\bin\javaw.exe" -jar "%1"
%* (replace $JAVA_HOME by the path to your jre)
TrevorBoydSmith@xxxxxxxxx wrote:
I created the tutorial helloworld project that prints text to a
console. I want to make it into a .jar so that I can double-click and
have it automatically run using the Java Runtime Environment. So I
used the export command and created a .jar file. (making sure to: not
compress, export generated class files and resources.) After those
setting I clicked finish. And expected the .jar file to double click
and open a console application. But nothing happened. I also tried
opening the .jar file in the command line. (This is on windows.)
How do you get a .jar file to work when you double-click? (if you know
a good source to read about this please leave a link on it)
.
- References:
- opening an eclipse .jar file
- From: TrevorBoydSmith
- opening an eclipse .jar file
- Prev by Date: Re: Open a file embbeded in a jar file
- Next by Date: Re: can this code be improved
- Previous by thread: Re: opening an eclipse .jar file
- Next by thread: JVM crashes on Linux RH4
- Index(es):
Relevant Pages
|