开发者

launching jar file via desktop shortcut

开发者 https://www.devze.com 2023-03-17 18:48 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消