Double click on JAR file to execute it.... How?

Hello,

I wrote a standalone java application, and im wondering how to put a shortcut on my desktop to run the application without having to go into the command prompt to type "java -jar MyProgram.jar".

I want to be able to just double click on it and have it run. Is there a way to do this?

[323 byte] By [rpk5928] at [2007-9-26 4:20:23]
# 1
Here is how I did it:Just install the JDK/JRE and then make a shortcut to the jar file you want to execute. When you install the jre jar's are registered and all you need do is double click them. I've done this in windows 95, 98, Me, NT, and Win2000.
morgalr at 2007-6-29 17:23:37 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
You can also do this manually from "Folder Options".
nerd2004 at 2007-6-29 17:23:37 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
not if you don't have the jre/jdk installed first.
morgalr at 2007-6-29 17:23:37 > top of Java-index,Archived Forums,New To Java Technology Archive...