Thursday, July 05, 2007

Manual Installation/Registration of Java Plug-in—Linux (for mozilla)

Manual Installation/Registration of Java Plug-in—Linux(for mozilla)

--------------------------------------------------------------------------------


To install the Java Plug-in follow these steps.

Note:

Only Mozilla can be registered with Java Plug-in.
Only one Java Plug-in 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 JDK 5.0 you created a symbolic link in the Mozilla plugins directory to:

~/jdk1.5.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 Plug-in.

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 Plug-in you have installed.

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

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

cd /plugins (usually /usr/lib/mozilla/plugins)
ln -s /plugin/i386//libjavaplugin_oji.so . (if you haven't installed jre, you can use jre installed with oracle instead, which is usually in $ORACLE_HOME/jre/1.4.2/plugin/i386/ns610-gcc32/)

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

Be sure to include the period at the end.

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 Plug-ins to confirm that the Java Plug-in is loaded.



In addition, redhat enterprise linux 4 uses Konqueror as its default browser.
You can use "vnc://hostname:5901" to access vnc server directly.

No comments: