Double clicking jar files

I've read that you should be able to run a program in a jar file by double clicking on it. When i do this it opens in winace and displays the contents. Does anyone know how to make it execute?ps. it works if i use the command line.
[246 byte] By [Electro808a] at [2007-10-3 1:19:21]
# 1
See this http://java.sun.com/docs/books/tutorial/deployment/index.htmlYou will also have to break/unassociate the jar extension from your ZIP tool.
cotton.ma at 2007-7-14 18:16:33 > top of Java-index,Java Essentials,New To Java...
# 2

Thanks but I've used that tutorial and others to learn how to make the jar file executable and its working if i use "java -jar hello.jar" at the command line.

Unfortunatley i was messing around with the 'open with' command on the jar file trying to fix it and i've made it associated with some html help thing., and i have no idea how to unasociate it.

Anyone know any way i can remove all associations with it?

Electro808a at 2007-7-14 18:16:33 > top of Java-index,Java Essentials,New To Java...
# 3
"Microsoft html help executable" is the thing i've got associated with the jar file.
Electro808a at 2007-7-14 18:16:33 > top of Java-index,Java Essentials,New To Java...
# 4
What icon should the jar file have in order to be able to double click execute it?I have it unasociated with any file type yet it now just asks me what program i want to open it with.
Electro808a at 2007-7-14 18:16:33 > top of Java-index,Java Essentials,New To Java...
# 5
i think you have to change it to open with javaw.exe
arunmp25a at 2007-7-14 18:16:33 > top of Java-index,Java Essentials,New To Java...
# 6
Thank you very much.
Electro808a at 2007-7-14 18:16:33 > top of Java-index,Java Essentials,New To Java...