Java 1.7.0_u25 Debugging an applet using eclipse

I try to debug the applet for 2 days, and I reviewed all the solutions posted on this site, but I can not find my error.

In my Java Runtime environment settings, I created all my JREs with parameters:

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

When I launch the applet in any browser and confirm the new security dialog with Java, the applet starts - everything is fine. However, when I run my debugger in Eclipse with the settings:

  • Type of connection: standard (jack for connection)
  • Host: localhost
  • Port: 8000

I get this error:

"Applet Launch" has encountered a problem. Failed to connect to the remote virtual machine.

In the details pane:

Failed to connect to the remote VM network. Invalid: connect

Ping output for localhost:

 ping localhost Pinging myhostename.mydomain [::1] with 32 bytes of data: Reply from ::1: time<1ms Reply from ::1: time<1ms Reply from ::1: time<1ms Reply from ::1: time<1ms 

What is my terrible mistake?

+4
source share
2 answers

Sun has already fixed this, and the fix will be included in the Java 1.7.0 40 update (released in late August)

Here is the error report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8016154

There is quick access for update 40: http://jdk7.java.net/download.html

I haven't tried this yet, but maybe it helps someone out there.

EDIT: Update 40 is now released, I tried again, but it still won’t work ... I will continue to try, maybe I did something wrong.

+3
source

1.7 seems to not support Applet Debugging ... error resolution is added in 1.8

http://bugs.java.com/view_bug.do?bug_id=8016005

It's good that I found your question / answer, otherwise I might have hit my head all day trying to figure out the problem.

0
source

All Articles