Linux / OpenJDK / IcedTea: debugging a browser using an applet

Has anyone ever shot this trick?

I'm trying to do something like

$ ICEDTEAPLUGIN_DEBUG=true; firefox 

but nothing listens on port 8787. Documents say this should work for me.

Please do not offer to switch from OpenJDK to Oracle JVM : this is normal, but not in the subject.

I'm not sure if there is a correct plugin, but this should be the way I made some trace settings and see the correct messages in

 ~/.icedtea/logs 

My current jre / jdk packages are listed below (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) 
+4
source share
1 answer

Your code does not correctly set the environment variable.

 ICEDTEAPLUGIN_DEBUG=true; firefox 

You have a semicolon, so you set the environment variable in the current shell - in particular, it will not pass the ICEDTEAPLUGIN_DEBUG variable to the firefox subprocess. What you really want is the following:

 ICEDTEAPLUGIN_DEBUG=true firefox 
0
source

Source: https://habr.com/ru/post/1381792/


All Articles