Want to install Java in Linux with latest version? I know most of user want to install Java in Linux because they needed to be efficient for managing server with control panel (such as CPanel, Webmin and so on) in web browser, create software with Java or other purpose. Installing Java latest version is not difficult actually. So, let’s install JDK 7 with terminal command line:
su or sudo -i // Change to be root privilege first
cd home/user/Downloads // Depending where do you save a location file
tar zxvf jdk-7u2-linux-i586.tar.gz -C /opt
Yep, finished for setup JDK 7. That was easy. There is no need to configure further.
Now, time to install plugin for internet browser Firefox. Before that, mostly for Linux distribution that is already out-of-the-box (e.g. Mint, Zorin) are installed Java plugin for internet browser but you cannot be expected whether that Java plugin they customed it working or not. Installing Java plugin in Firefox is a little bit hard because you must locate it a folder for firefox addons or plugins first. To do that, please make sure:
– Disable plugins Java in Firefox Add-ons section to make sure that is not conflict with another Java plugins because only one required for installing Java plugin in Firefox.
– Close Firefox
Then follow this command to setup Java plugin in Firefox:
locate firefox or locate firefox-10.0 // Mostly for Linux distribution, Firefox are located in /usr/lib if you installed automatically. The name folder Firefox are firefox or firefox-10.0 (if you install latest version Firefox from launchpad.net). If you have a folder name firefox-10.0 or latest version, use this firstly as priority.
cd /usr/lib/firefox/plugins // This is for Firefox version that is usually installed default from Linux distribution. Use this only if you don’t installed from launchpad.net and if you don’t have a folder name like firefox-*.
cd /usr/lib/firefox-addons/plugins // This is for Firefox latest version if you installed from launchpad.net and if you have a folder name like firefox-*. Use this firstly as priority.
ln -s /opt/jdk1.7.0_02/jre/lib/i386/libnpjp2.so .
Congrats, you already installed Java plugin for Firefox. Now, open Firefox then go to Add-Ons section.
Then, you will see name Add-ons “Java(TM) Plug-in 1.7.0_02″ that is already installed it and click Enable.
That’s all for today. Hope you like it.