Firefox
When you install the Java platform, the Java plug-in file is included as part of the installation. To use Java in Firefox, you need to manually create a symbolic link from the plug-in file in that release to one of Firefox's expected locations. For Firefox version 21 and later, you must create a symbolic link in the home directory ~/.mozilla/plugins . Starting with Firefox version 21, creating symbolic links in subdirectories of the Firefox application directory is not supported plugins .
To configure Java Plugin, follow these steps:
- Exit the Firefox browser (if it is already running).
- Uninstall all previously installed Java plugins .
Only one Java plug-in can be used at a time. If you want to use a different version of another plug-in or plug-in, remove the symbolic link to any other version and create a new symbolic link to the new version.
Delete the plugins javaplugin-oji.so symbolic links to and from the Firefox directory libnpjp2.so (or move the links to a different directory).
- Create a symbolic link to a
plugins Java plugin in the Firefox directory
- Go to the Firefox
plugins directory
cd ~/.mozilla/plugins
If the plugins directory does not exist, the directory is created.
- Creating Symbolic Links
32-bit plugins:
ln -s Java installation directory /lib/i386/libnpjp2.so。
64-bit plugins:
ln -s Java installation directory /lib/amd64/libnpjp2.so .
Example
- If Java is installed in the following directory:
/usr/java/Java installation directory
- On the terminal window, type the following command to go to the browser's plug-in directory:
cd ~/.mozilla/plugins/
- Enter the following command to create a symbolic link to the Java plugin for Firefox:
ln -s /usr/java/Java installation directory /lib/i386/libnpjp2.so .
- launches the Firefox browser and restarts if the browser is started.
In the Firefox location bar, type about:plugins to confirm that the Java plugin is loaded. You can also click the Tools menu to confirm that the Java console exists.
Linux Enable and configure Java