Sun Java Solaris Communities My SDN Account Join SDN

JavaTM SE 6 Release Notes

Manual Installation and Registration of Linux Plugin


JDK Documentation

To install the Java Plugin follow these steps.

Note:

  1. Only Mozilla or Firefox can be registered with Java Plugin.
  2. Only one Java Plugin can be registered at a time. When you want to use a different version, unregister any other version and register the new one.

    Example:

    Suppose for you created a symbolic link in the Mozilla plugins directory to:

    ~/jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so

    Then cd to the Mozilla plugins directory and remove the link as shown below:

    rm libjavaplugin_oji.so

    Also check that there are no links in the Mozilla components directory.

1. Uninstall any previous installations of Java Plugin.

rm -fr $HOME/.netscape/java
rm $HOME/.netscape/plugins/javaplugin.so
rm $HOME/.netscape/plugins/libjavaplugin.so

One or more of these files may exist on your machine, depending on which previous versions of Java Plugin you have installed.

2. For the Mozilla browser create a symbolic link to the Plugin in the Mozilla plugins directory.

Create a symbolic link to the Java Plugin libjavaplugin.so file in the Mozilla plugins directory.

cd <Mozilla>/plugins
ln -s <JRE>/plugin/i386/<ns7 | ns7-gcc29>/libjavaplugin_oji.so

In the ln command line above, use ns7-gcc29 if Mozilla was compiled with gcc2.9.

3. Start the Mozilla browser, or restart it if it is already up.

Note that if you have other Mozilla "objects" open before restarting (Messenger, Composer ...) you will need to shut them down as well.

In Mozilla do Help -> About Plugins to confirm that the Java Plugin is loaded.

4. For Firefox, create a symbolic link to the Java Plugin in the Firefox plugins directory.

Create a symbolic link to the Java Plugin libjavaplugin.so file in the Firefox plugins directory.

cd <Firefox>/plugins
ln -s <JRE>/plugin/i386/<ns7 | ns7-gcc29>/libjavaplugin_oji.so

In the ln command line above, use ns7-gcc29 if Firefox was compiled with gcc2.9.

If you install Firefox 1.5 or later, you can enable the Java Console menu item in the Tools menu. Change directories to the Firefox extensions directory, then unzip ffjcext.zip there.

cd <Firefox>/extensions
unzip <JRE>/lib/deploy/ffjcext.zip

5. Start the Firefox browser, or restart it if it is already up.

In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded. If the version is Firefox 1.5 or later, click the Tools menu to confirm that Java Console is there.