简体   繁体   English

无法使用JDK 7u21和7u25调试applet

[英]Unable to debug applet with JDK 7u21 and 7u25

After upgrading my JDK from 7u17 to 7u21 or 7u25, I can no longer debug my applets. 将我的JDK从7u17升级到7u21或7u25之后,我无法再调试我的applet。 I used to set the following parameters to java.exe through Java Control Panel and it worked fine: 我曾经通过Java控制面板将以下参数设置为java.exe,它运行良好:

-classic -verbose -Xdebug -Xnoagent -Dcom.sun.management.jmxremote -Djavaplugin.classloader.cache.enabled=false -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8055,suspend=n

However it's not working with 7u21 and 7u25. 但是,它不适用于7u21和7u25。 With Process Explorer, I see some debug-related parameters are missing in the command line: 使用Process Explorer,我看到命令行中缺少一些与调试相关的参数:

"C:\\Java\\jre7\\bin\\java.exe" -Xbootclasspath/a:"C:\\Java\\jre7\\lib\\deploy.jar";"C:\\Java\\jre7\\lib\\javaws.jar";"C:\\Java\\jre7\\lib\\plugin.jar" -Djava.class.path="C:\\Java\\jre7\\classes" -D__jvm_launched=602583525371 -D__applet_launched=602583523886 -Dsun.awt.warmup=true -Xdebug -verbose -Djnlp.packEnabled=false sun.plugin2.main.client.PluginMain write_pipe_name=jpi2_pid10980_pipe9,read_pipe_name=jpi2_pid10980_pipe8

Should I change some parameters or Java settings? 我应该更改一些参数或Java设置吗? Or is this a JDK bug? 还是这是一个JDK错误?

I had a LOT of trouble with applets in general with 7u25, and actually uninstalled it and went back to 7u21. 一般来说,在7u25上,小程序给我带来了很多麻烦,实际上已将其卸载并返回到7u21。 It was so bad that I submitted a bug report and Oracle is working on it. 太糟糕了,我提交了一个错误报告,Oracle正在研究它。

I was able to get a decent amount of debugging with the in-browser Java Consoles by going into the Java Control Panel, clicking the Advanced tab, and enabling pretty much everything I thought might be relevant. 通过进入Java控制面板,单击“高级”选项卡,并启用了我认为可能相关的几乎所有功能,我可以使用浏览器内的Java控制台进行大量调试。

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

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