How can I debug applications under Java Web Start (JNLP)?

前端 未结 9 2274
你的背包
你的背包 2020-11-29 02:29

I know how I can debug a remote Java VM with Eclipse, but how can I do it with a Java Web Start program. I have a problem that only occurs in Java Web Start. It must be secu

9条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 03:35

    With Java 8 and Windows 10, open command prompt (cmd.exe) and type this:

    set JAVAWS_TRACE_NATIVE=1
    set JAVA_TOOL_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
    javaws java-app.jnlp
    

提交回复
热议问题