Re: opening an eclipse .jar file
TrevorBoydSmith@gmail.com 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)
either wrap it into a .bat file and put a java.exe command in the bat
file to execute the jar or the more appropriate way is to associate .jar
files with javaw.exe in your Windows MIME types so that javaw.exe is
executed to run it just like msword.exe runs for .doc files.