使用 Eclipse 调试 Java 1.7.0_u25 Applet [英] Java 1.7.0_u25 Applet Debugging with eclipse

查看:25
本文介绍了使用 Eclipse 调试 Java 1.7.0_u25 Applet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在尝试调试小程序 2 天,我已经浏览了本网站上发布的所有解决方案,但我找不到我的错误.

I'm trying to debug an applet for 2 days now and I've gone over every solution posted on this site, but i can't find my mistake.

在我的 Java 运行时环境设置中,我使用参数设置了所有 JRE:

At my Java Runtime Environment Settings i set up all my JREs with the parameters:

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

当我在任何浏览器中运行 Applet 并确认来自 Java 的新安全对话框时,Applet 启动 - 一切正常.但是,当我使用以下设置在 Eclipse 中运行调试器时:

When I run the Applet in any browser, and confirm the new security dialog from Java, the Applet starts - all fine. However, when I run my Debugger in Eclipse with the settings:

  • 连接类型:标准(套接字连接)
  • 主机:本地主机
  • 端口:8000

我收到此错误:

启动小程序"遇到问题.无法连接到远程虚拟机.

'Launching Applet' has encountered a problem. Failed to connect to remote VM.

在详细信息窗格中:

无法连接到远程 VM 网络无法访问:连接

Failed to connect to remote VM Network is unreachable: connect

ping 本地主机的输出是:

The output of an Ping to localhost is:

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 awfully ridiculous mistake?

推荐答案

Sun 已经修复了该问题,该修复将包含在 Java 1.7.0 update 40(8 月下旬发布)中

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

这是错误报告:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8016154

更新 40 可抢先体验:http://jdk7.java.net/download.html

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

我还没有尝试过这个,但也许它可以帮助那里的人.

I have not yet tried this but maybe it helps someone out there.

更新 40 现已发布,我再次尝试,但仍然无法正常工作...我会继续尝试,也许我做错了什么.

Update 40 is now released, I tried it again but it still won't work... I will continue trying, maybe i did something wrong.

这篇关于使用 Eclipse 调试 Java 1.7.0_u25 Applet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆