If you are going to reinstall Java, you don't need to uninstall Java Plug-in. Just use the -f option for ln when creating a new symbolic link.
Example:
ln -f /usr/lib/mozilla/plugins/libjavaplugin_oji.so
If you want to completely remove Java from your Linux box, the procedure of removing the symbolic link is described below.
There are two ways to uninstall Java. Please use the method that you used when you installed Java. For example, if you used RPM to install Java, then use the RPM uninstallation method.
Note:If you have RPM on your Linux box, you should first find out if Java is already installed using RPM. If Java is not installed using RPM, you should skip reading.
Open Terminal Window
Login as the super user
Try to find jre package by typing: rpm -qa
If RPM reports a package similar to jre-<version>-fcs, then Java is installed with RPM.
Note:Normally, you do not need to uninstall Java with RPM, because RPM is able to uninstall the old version of Java when installing a new version! You may skip reading, unless you want to remove Java permanently.
Find out if Java is installed in some folder. Common locations are /usr/java/jre_<version> or /opt/jre_nb/jre_<version>/bin/java/
When you have located the folder, you may delete folder. Warning: You should be certain that Java is not already installed using RPM before removing the folder.