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"