All entries for Friday 12 April 2013
April 12, 2013
On my ubuntu box, there are two versions of JDK installed: OpenJDK and Sun JDK.
The latest version OpenJDK I can get now is openjdk-7-jdk.
root> java -version java version "1.7.0_15" OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.04.1) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
With OpenJDK, you can install package “icedtea-7-plugin” to install the java plugin for Chrome. You can go “http://www.java.com/” and click “Do I have Java” to verify the Java version. The verification page display a blank page even after I accepted the security warning. However, I can succesfully verify in http://javatester.org/enabled.html
Somehow, the IcedTea crashed often.
I downloaded the binary version of Sun JDK and installed the software by unzip the binaries:
root> java -version java version "1.7.0_17" Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
To make Chrome use the jre plugins:
cd ~/.mozilla/plugins ln -s /apps/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so
Go “http://www.java.com/” and click “Do I have Java” to verify the java successfully.
Type “chrome://plugins” in the address bar, you can see both “IcedTea-Web Plugin” and “Java™ – Version: 1.7.0_17” are enabled. The latter takes precedence.
You can also use http://www.java.com/en/download/testjava.jsp to test the Java plugin.
In the end, I chose to use OpenJDK + IcedTea. Don’t want to manually download and install Sun JDK every time I need to upgrade.