2010年12月7日 星期二

UBUNTU 10.10 Firefox/Chromium Browser Sun JAVA Plug-in replacement method


sudo apt-get install sun-java6-jre sun-java6-plugin
  
# Find the new style java plugin:
me@mybox:~$ locate libnpjp2
/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/libnpjp2.so
 
# symlink it to the chromium plugins directory
sudo ln -sf /usr/local/jre1.6.0_16/lib/i386/libnpjp2.so /usr/lib/chromium-browser/plugins/
 
# remove the old style plugin because it didn't work
sudo rm -rf /usr/lib/chromium-browser/plugins/libjavaplugin_oji.so
 
接著用, 
update-alternatives --config java
update-alternatives --config javac
變更 java 使用的版本.
   
Ref.
http://jamesmcdonald.id.au/it-tips/java-on-chromium-browser-ubuntu-9-04

沒有留言:

張貼留言