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

前端 未结 9 2269
你的背包
你的背包 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:15

    Start the JWS VM manually. This way you can provide the startup parameters to open the debug port. Here is a description, it goes like this:

    set JAVAWS_TRACE_NATIVE=1
    set JAVAWS_VM_ARGS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8989,server=y,suspend=n"
    javaws http://server:port/descriptor.jnlp
    

提交回复
热议问题