Thursday, January 10, 2013

Installing Java on Linux 64-Bit and Enabling for Mozilla Browser

Description: This guide shows how to install Java on Linux, and configure Mozilla browser to enable Java.

Obtaining Java
You can obtain the software here.
Product: Java SE Development Kit 6u38
OS: Linux x64
File: jdk-6u38-linux-x64.bin

Installing Java
Give yourself execute permission for the binary file.
chmod 700 jdk-6u38-linux-x64.bin
Execute the binary file.
./jdk-6u38-linux-x64.bin
A "jdk1.6.0_38" directory should have been created for you. Place this directory in your home directory.
mv jdk1.6.0_38/ /home/oracle/
Note: Java can be installed anywhere. To install java system-wide, place the "jdk1.6.0_38" directory in the "/usr/local" directory. This requires root privileges.

Enable Java for Mozilla Firefox Browser
Make a symbolic link of libnpjp2.so file in your mozilla plugins directory.
cd /home/oracle/.mozilla/plugins
ln -s /home/oracle/jdk1.6.0_38/jre/lib/amd64/libnpjp2.so libnpjp2.so 
To remove old symbolic link:
cd /home/oracle/.mozilla/plugins
rm libnpjp2.so

Validating Java on Mozilla
Type "about:plugins" in the address bar
Check if "Java(TM) Plug-in 1.6.0_38" is there.

No comments:

Post a Comment