Friday, February 12, 2010

Installing Flash & Java on Firefox & Chromium browsers

1. Install Flash & Java
2. Symlink executables to browser plugin folder

Java

sudo ln -s  JAVA_PLUGIN_PATH BROWSER_PLUGIN_PATH

Flash

sudo ln -s FLASH_PLUGIN_PATH BROWSER_PLUGIN_PATH

To find JAVA_PLUGIN_PATH

locate libnpjp2.so
/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/libnpjp2.so

To find FLASH_PLUGIN_PATH

locate libflashplayer.so
/usr/lib/flashplugin-installer/libflashplayer.so

And BROWSER_PLUGIN_PATH is

# Firefox 
/usr/lib/mozilla/plugin/

# Chromium 
/usr/lib/chromium/plugin/

#Google-Chrome 
/opt/google/chrome/plugin/

NOTE: symlinks must be updated after every java upgrade

No comments: