set java tool option,无法使用Java 8调试JNLP

I have tried all ways

running application as

1) javaws -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9123 My.jnlp

2) setting the same option in JAVA_TOOL_OPTIONS

3) setting the same option in JAVAWS_VM_ARGS

4) setting the same option (without -J) in Java control panel

Tried the same options with or without Xnoagent

Each and every way, after doing it when I try to connect from eclipse - it cannot connect. When I do netstat -a - it doesn't show anyone listening on 9123.

I am on windows 10

解决方案

is good, but, on windows environment, you have to follow exactly the indication putting everything in a batch file and invoking that one.

I have just tried even with java 9 creating a file launchMyJnlp.bat with this content.

setlocal

set JAVAWS_TRACE_NATIVE=1

set JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,address=9999,server=y,suspend=n %JAVA_TOOL_OPTIONS%

"c:\Program Files\Java\jre-9"\bin\javaws my.jnlp

endlocal

Launching >launchMyJnlp.bat I found the application listening on port 9999 has expected!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值