Snippets code from my daily experience

November 7, 2008

Java plugin with Prism under Ubuntu 64 bit

Filed under: 64bit, java plugin, linux, prism, ubuntu — dafi @ 8:54 pm

This post in mainly for my own usage, my brain loose very quickly informations :P

I use Ubuntu Intrepid Ibex 64bit version with Firefox Linux x86_64 and occasionally I need to visit some website using Java applets, as well known to run Java plugin you need to use the Firefox 32bit version because the Java plugin exists only for this architecture.

I don’t want to trash my FF 64bit (also Swiftweasel) only for Java plugin so I’ve decided to configure Prism to use the websites needing java plugin.

  • Install the 32bit version of java
    sudo apt-get install ia32-sun-java6-bin
  • Create a symlink to plugin
    sudo
    ln -s /usr/lib/jvm/ia32-java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /home/dave/.mozilla/plugins/
  • Create a prism webapp, for example using the Sun test page

The destination path /home/dave/.mozilla/plugins/ must be modified according to your settings

This confirms Prism is rock ;)

EDIT (05 July 2009) After Sun released the plugin compatible with 64bit platforms you can change the symlink to

ln -s $JDK_INSTALLED_DIR/jre/lib/amd64/libnpjp2.so /home/dave/.mozilla/plugins/

as described at PluginDoc web page

Blog at WordPress.com.