ubuntu 12.04 上 在chrome/firefox 中使用 java Version 7 Update 5

download java


To enable Oracle's Java plugin in your Linux browsers, just copy these lines into a script, and run it! JAVA_HOME=/usr/lib/jvm/jdk1.7.0 MOZILLA_HOME=~/.mozilla mkdir $MOZILLA_HOME/plugins ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so $MOZILLA_HOME/plugins

Note: You may need to change the value of JAVAHOME so that it correctly points to your installation of the JDK. 64-bit users will need to change the final line to: `ln -s $JAVAHOME/jre/lib/amd64/libnpjp2.so $MOZILLA_HOME/plugins`

The above script will enable Java support in both Chrome/Chromium and Firefox, since they both use the~/.mozilla/plugins directory to scan for available plugins.