我使用此命令使用批处理文件启动Java应用程序:
SET JAVAWS_VM_ARGS=-agentpath:"C:\Program Files (x86)\Jacada\JIA\2.2\JavaAgent" -Djava.ext.dirs="C:\Program Files (x86)\Jacada\JIA\2.2\JavaSupport" -Xdebug -Djia.port=5000:5060 -Dlog4j.configuration="jia.log4j.properties"
"C:\Program Files\Internet Explorer\iexplore.exe" -noframemerging http:///linktofile/jnlpfile.jnlp
应用程序无法完全加载。
答案 0 :(得分:0)
尝试使用此批处理文件模板:
@ECHO OFF
SET JAVA_BASE=C:\PROGRA~2\Java\JRE18~1.0_1
SET JAVA_BIN=%JAVA_BASE%\bin
SET JAVA_EXT=%JAVA_BASE%\lib\ext
SET JNLP=https://server/webstart-app.jnlp
SET JIA_BIN=C:\PROGRA~2\Jacada\JIA
SET JAVAWS_VM_ARGS=-Dlog4j.configuration=jia.log4j.properties -agentpath:%JIA_BIN%\JavaAgent -Djia.port=4444:4460 -Djava.ext.dirs=%JIA_BIN%\JavaSupport;%JAVA_EXT%
SET PATH=%JAVA_BIN%
REM Go to the [JRE]/lib/security folder, edit the following files:
REM java.policy,
REM javaws.policy
REM Make sure the have the following lines inside the general 'grant' block:
REM permission java.awt.AWTPermission "listenToAllAWTEvents";
REM permission java.awt.AWTPermission "accessEventQueue";
REM permission java.awt.AWTPermission "setDropTarget";
REM permission java.awt.AWTPermission "accessClipboard";
REM permission java.awt.AWTPermission "acceptDropBetweenAccessControllerContexts";
ECHO JAVAWS_VM_ARGS=%JAVAWS_VM_ARGS%
ECHO.
ECHO PATH=%PATH%
ECHO.
ECHO COMMAND="%JAVA_BIN%\javaws.exe" -verbose "%JNLP%"
ECHO.
"%JAVA_BIN%\javaws.exe" -verbose "%JNLP%"
*免责声明:我为Jacada工作