Oracle Java is currently the most widely used version of Java, boasting excellent performance and security features. But how can you install this widely used and useful Java package on your Linux Ubuntu system?
Follow these steps to install Oracle Java on Linux Ubuntu:
1. Download Oracle Java
First, you need to download the Oracle Java package you want to install. Ensure you download the correct version for your specific Ubuntu installation, which may be either the 32-bit or 64-bit version.
2. Install Ubuntu’s PPA
You need to add the Ubuntu PPA (Personal Package Archives) repository to your system to assist in installation. This PPA contains updated versions of Java, with automatic updates to your Java installation, providing you with the latest versions as they come.
3. Install Oracle Java
To commence the Oracle Java installation process, open a terminal window on your Ubuntu system and input the following command;
“`
sudo add-apt-repository ppa:webupd8team/java
“`
Once you have entered this command, press enter. Ubuntu will fetch the PPA and add it to the system’s repositories.
4. Update Your System
Before installing Oracle Java, update your system to ensure that everything is working correctly. To do this, type the following command;
“`
sudo apt-get update
“`
This command will update your system and release multiple cache files from Ubuntu’s repository database, making it easier to install Oracle Java.
5. Install Oracle Java
Now that you have everything ready, it’s time to start the installation proper. Type the following command;
“`
sudo apt-get install oracle-java12-installer
“`
This command will install Oracle Java 12 on your system.
6. Verify Oracle Java Installation
To check whether the installation was successful, type the following command:
“`
java -version
“`
If installation was successful, this command will display Oracle Java’s version currently installed on your system.
Installing Oracle Java on Linux Ubuntu may seem complicated, but if you follow the above steps, you will have seamless and hassle-free installation and will be using Java-based applications in no time.
In conclusion, Oracle Java is a high-performing and secure Java version worth the installation efforts on your Ubuntu Linux system. The installation process is quite easy, with just a few commands and some patience. With proper installation, you will be able to run Java programs and applications with ease on your Ubuntu system.