简体   繁体   English

Java Applet调试:端口未打开进行调试

[英]Java applet debugging: port does not open for debugging

I am using Java 8. I am trying to debug an applet for which I had set up below runtime parameters in java configuration: 我正在使用Java8。我正在尝试调试在Java配置中的运行时参数下方设置的applet:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=7901,suspend=n

But the given port 7901 does not show up when I do the netstat /a 但是当我执行netstat /a时,给定的端口7901没有显示

So while trying to start remote application with the given port for localhost and connection type as Standard(Socket Attach) in eclipse, it always fails to connect to the vm. 因此,当尝试使用给定的本地主机端口和连接类型Standard(Socket Attach)在eclipse中以Standard(Socket Attach)启动远程应用程序时,它始终无法连接到vm。

After setting/changing the port in the runtime parameters, is there any further step to bring up the port? 在运行时参数中设置/更改端口后,是否还有其他步骤启动该端口? If not then what could be the reason of port not coming up in netstat? 如果不是,那么netstat中端口不出现的原因可能是什么?

I had Java x64 and x86 both installed in my system. 我的系统中同时安装了Java x64和x86。 The java config in control panel opens the config for x64 and apperently my applet was using x86 java. 控制面板中的Java配置打开x64的配置,我的小程序正在使用x86 Java。 So I executed javacpl.exe for x86 java manually and set the runtime parameters in config. 因此,我手动为x86 java执行了javacpl.exe ,并在config中设置了运行时参数。 After that the port shows up in netstat. 之后,端口将显示在netstat中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM