How to Install Oracle Java on Ubuntu Linux
Optional: How to Enable Oracle Java on Web Browser
To enable the Java plug-in on a web browser, you must create a symbolic link from the browser's plug-in directory to the location of the Java plug-in in the Oracle Java partition.
Important Note: You should be careful when activating Oracle Java 7 in your web browser because of the fact that Java has a multitude of security holes and exploits. More importantly, when activating Oracle Java 7 on a web browser, if there is a security hole or exploit, this is a weak point for bad guys to infiltrate and harm your system. For more information about Java vulnerabilities and exploits, visit the website: Java Tester
Google Chrome
Oracle Java 32-bit Tutorial:
Execute the following command.
Type/Copy/Paste: sudo mkdir -p /opt/google/chrome/plugins
Here is the command to create the directory /opt/google/chrome/plugins
Type/Copy/Paste: cd /opt/google/chrome/plugins
This is the command that takes you to the google chrome plugin folder, remember to go to this folder before creating the icon link
Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.7.0_45/lib/i386/libnpjp2.so
This is the command to create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to the Google Chrome browser.
Oracle Java 64-bit Tutorial:
Execute the following command.
Type/Copy/Paste: sudo mkdir -p /opt/google/chrome/plugins
Here is the command to create the directory /opt/google/chrome/plugins
Type/Copy/Paste: cd /opt/google/chrome/plugins
This is the command that takes you into the google chrome plugin directory, make sure you go into the directory before creating the icon link.
Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.7.0_45/lib/amd64/libnpjp2.so
This is the command to create a symbolic link from the Java JRE (Java Runtime Environment) plugin libnpjp2.so to the Google Chrome browser.
Remind:
Note: When executing the above commands, sometimes you get the following message:
ln: creating symbolic link `./libnpjp2.so': File exists
To fix this problem, simply remove the previous link with the following command:
Type/Copy/Paste:cd /opt/google/chrome/plugins
Type/Copy/Paste:sudo rm -rf libnpjp2.so
Make sure you are in the /opt/google/chrome/plugins directory before executing the command.
Restart the web browser and go to Java Tester to check if Java is working or not.
Mozilla Firefox
Oracle Java 32-bit Tutorial:
Execute the following command.
Type/Copy/Paste: cd /usr/lib/mozilla/plugins
This is the command that takes you to the plugin directory /usr/lib/mozilla/plugins, create this directory if not already there.
Type/Copy/Paste: sudo mkdir -p /usr/lib/mozilla/plugins
Here is the command to create the /usr/lib/mozilla/plugins directory, make sure you are in the directory before creating the symbolic link.
Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.7.0_45/lib/i386/libnpjp2.so
This is the command to create a symbolic link from the Java JRE(Java Runtime Environment) plugin libnpjp2.so to the Mozilla Firefox web browser.
Oracle Java 64-bit Tutorial:
Execute the following command:
Type/Copy/Paste: cd /usr/lib/mozilla/plugins
This is the command that takes you to the /usr/lib/mozilla/plugins directory, create this directory if not already there.
Type/Copy/Paste: sudo mkdir -p /usr/lib/mozilla/plugins
Here is the command to create the /usr/lib/mozilla/plugins directory, make sure you are in the directory before creating the symbolic link.
Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.7.0_45/lib/amd64/libnpjp2.so
This is the command to create a symbolic link from the Java JRE(Java Runtime Environment) plugin libnpjp2.so to the Mozilla Firefox web browser.
Remind:
Note: Sometimes you execute the above commands and get the message:
ln: creating symbolic link `./libnpjp2.so': File exists
To fix this problem, simply remove the previous link with the following command:
Type/Copy/Paste: cd /usr/lib/mozilla/plugins
Type/Copy/Paste: sudo rm -rf libnpjp2.so
Make sure you are in the /usr/lib/mozilla/plugins directory before executing the command.
Restart the web browser and visit the Java Tester page to check if Java is already working in the browser.
You should read it
- How to Install Oracle Java JRE on Ubuntu Linux
- Oracle wants to turn Java EE into fully open source
- How to Install Android on Ubuntu Linux with Eclipse IDE
- How to Use R Language to Connect with an ORACLE Database
- How to install Java Runtime in Ubuntu
- How to troubleshoot Ubuntu problems does not start
- How to Install JDK in Linux
- How to install Java on a Raspberry Pi
May be interested
- Install and use 7 ZIP on Ubuntu Linuxif you are a windows user and you have ever sent/received large files online, you probably have not heard of the 7 zip file compression tool. installing 7 zip on windows is quite simple, so what about on ubuntu linux. the article below tipsmake will guide you how to install and use 7 zip on ubuntu linux.
- How to Use R Language to Connect with an ORACLE Databasethe language r can be used to connect with an oracle database and perform several actions. for use on linux ubuntu and oracle xe, learning to connect in this way makes the task much more manageable. choose your os (linux 32) here:...
- How to install Steam in Ubuntusteam is the most popular online gaming platform for pc and linux. there are over 2000 steam games available for linux. although steam is available through the official ubuntu repositories, many new linux users still have trouble installing.
- How to Install Ubuntu Linuxthis is an article showing how to install ubuntu linux on a windows or mac computer without removing the current operating system.
- 5 things to do when installing Ubuntu on PCubuntu is a powerful linux distribution suitable for a wide variety of use cases, ideal for both beginners and seasoned linux users.
- Instructions to install Ubuntu directly from the hard driveubuntu is one of the most popular linux distributions. if you want to install ubuntu, the simplest way is to use the hard drive. follow the article below to see how to do it.
- How to Install the Java Software Development Kitbefore you can create and modify java programs, you'll need the java software development kit. you can download the kit (also known as java sdk or jdk) for free from oracle as a single installer file, which makes installation quick and...
- How to install Pip in Ubuntulinux has a lot of package managers. ubuntu not only has apt but also many programming languages that come with its own package manager. pip stands for python packages packages and allows you to easily install packages from python package index (pypi).
- Download and install Java on the computerto program java on your computer, you need to install the java environment, this tutorial will show you how to download and install java on your computer.
- How to fix the error does not install Javamore and more applications and websites require java installation before use. unfortunately, sometimes you can't install java or install it, but it doesn't work. the article will provide ways to fix errors that do not install java on your computer.