0
如果我想嵌入JRE与我的应用程序,我有这个目录结构。使用批处理脚本运行带有嵌入式JRE的Jar文件。
+---jre
| +---bin
RunMyApp.bat
myApp.jar
我已经在RunMyApp.bat加入这个语句访问的java.exe
jre\bin\java.exe -help
那么如何运行myApp.jar,使用RunMyApp.bat脚本?
我已经试过这一个,但没有成功
jre\bin\java.exe -jar "%cd%\..\..\myApp.jar"