launching jar file via desktop shortcut
I have a jar file App.jar in C:\program files\My app\Data\
along with the JRE with a native launcher in C:\program files\My app\
. The launcher is programmed to accept any command line args
and pass it on to the jar file by calling it via the javaw -jar
. I created an MSI package to install this 开发者_JS百科whole thing and associated a filetype to the launcher. When double clicking an associated file, JVM says that "Unable to access jarfile at 'Data\App.jar'"
. However if I manually run the launcher with the same argument it works! Help!
I don't understand your question very well, but I think it is realted to the way you have created you MSI package, but anyway, you can take a look to:
http://jsmooth.sourceforge.net/
For allowing your .jar to be launched from an .exe, this apps creates a wrapper.
精彩评论