繁体   English   中英

Linux / OpenJDK / IcedTea:调试浏览器托管的applet

[英]Linux/OpenJDK/IcedTea : debugging browser-hosted applet

有没有人把这个骗局拉下来?

我想做点什么

$ ICEDTEAPLUGIN_DEBUG=true; firefox

但没有任何东西在端口8787上听。文件说这对我有用。

请不要建议从OpenJDK切换到Oracle JVM :这是可以的,但不是主题。

我不确定是否有正确的插件,但它应该是这样,因为我做了一些跟踪设置并看到正确的消息

~/.icedtea/logs

我目前的jre / jdk包列在下面(Ubuntu Maverick)。

$ dpkg -l "*jdk*" "*jre*" "*icedtea*"
un  cacao-oj6-jre                        <none>                               (no description available)
ii  default-jdk                          1:1.6-40ubuntu1                      Standard Java or Java compatible Development Kit
ii  default-jre                          1:1.6-40ubuntu1                      Standard Java or Java compatible Runtime
ii  default-jre-headless                 1:1.6-40ubuntu1                      Standard Java or Java compatible Runtime (headless)
ii  gcj-4.5-jre-lib                      4.5.2-8ubuntu1                       Java runtime library for use with gcj (jar files)
un  gcj-jre                              <none>                               (no description available)
ii  icedtea-6-jre-cacao                  6b22-1.10.2-0ubuntu1~11.04.1         Alternative JVM for OpenJDK, using Cacao
ii  icedtea-6-jre-jamvm                  6b22-1.10.2-0ubuntu1~11.04.1         Alternative JVM for OpenJDK, using JamVM
un  icedtea-gcjwebplugin                 <none>                               (no description available)
ii  icedtea-netx                         1.1.1-0ubuntu1~11.04.1               NetX - implementation of the Java Network Launching Protocol (JNLP)
ii  icedtea-plugin                       1.1.1-0ubuntu1~11.04.1               web browser plugin based on OpenJDK and IcedTea to execute Java applets
un  icedtea6-jre-cacao                   <none>                               (no description available)
ii  icedtea6-plugin                      6b21.1.1-0ubuntu1~11.04.1            web browser plugin to execute Java applets (dependency package)
un  jre                                  <none>                               (no description available)
un  openjdk-6-dbg                        <none>                               (no description available)
un  openjdk-6-demo                       <none>                               (no description available)
un  openjdk-6-doc                        <none>                               (no description available)
ii  openjdk-6-jdk                        6b22-1.10.2-0ubuntu1~11.04.1         OpenJDK Development Kit (JDK)
ii  openjdk-6-jre                        6b22-1.10.2-0ubuntu1~11.04.1         OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-6-jre-headless               6b22-1.10.2-0ubuntu1~11.04.1         OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib                    6b22-1.10.2-0ubuntu1~11.04.1         OpenJDK Java runtime (architecture independent libraries)
un  openjdk-6-jre-zero                   <none>                               (no description available)
ii  openjdk-6-source                     6b22-1.10.2-0ubuntu1~11.04.1         OpenJDK Development Kit (JDK) source files
un  sun-java5-jre                        <none>                               (no description available)
un  sun-java6-jdk                        <none>                               (no description available)
un  sun-java6-jre                        <none>                               (no description available)

您的代码未正确设置环境变量。

ICEDTEAPLUGIN_DEBUG=true; firefox

你有一个分号,所以你在当前 shell中设置环境变量 - 特别是这不会将ICEDTEAPLUGIN_DEBUG变量传递给firefox子进程。 你真正想要的是这个:

ICEDTEAPLUGIN_DEBUG=true firefox

暂无
暂无

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

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