I have a jar file called install.jar which each user needs to run on his system. Earlier I was distributing a batch file with it with the command
java -jar install.jar
and the program would run. But now i want to allow the user to run the application by double clicking on the jar file (without using a batch file).
So i associated my jar file with javaw.exe
e" -jar "%1" %*
as mentioned by objects in
It works perfectly fine on my machine. But if i give the jar file to users to install the application then it doesn't work. Windows asks which program to use and after that doesn't do anything even if java.exe is selected.
How should i solve this?