.jar file only works with 'java -jar'
807588May 19 2009 — edited May 26 2009I have a .jar file that contains an installer. When I double click it nothing happens on my work computer (vista32). I have tried moving it to my home computer (vista64 and winXP) there it works fine when I double-click it.
I have found a temporary solution for the work/vista32 machine. If I run it with:
java -jar installer.jar
it works. I have put this in the target of a shortcut to the file. But why do I need to do that manually when it works fine on my other machine by just double clicking the file?