Ubuntu is an open-source operating system that provides users with useful tools for basic tasks such as web browsing, word processing, or watching movies. Users can use Ubuntu for free without any fees, and the operating system is constantly being updated. Hopefully, one day it can compete with Windows.
Mytour has had many articles related to Java, installing Java, but all those articles were only for Windows. In this article, we will guide you on how to install Java on the Ubuntu 12.04 operating system.
Guide to Installing Oracle Java 7 on Ubuntu 12.04
First, you can download the Ubuntu 12.04 version here: Ubuntu 12.04
Or download the latest version of Ubuntu if you prefer: Ubuntu
Note: The installation process requires your computer to be connected to the internet.
Step 1: First, users need to uninstall the openjdk file by sauclicking on the Dashboard as shown in the picture.
Step 2: Type Terminal and click on the search results.
Step 3: Enter the command “sudo apt-get purge openjdk*” then press Enter, wait a few seconds for it to complete.
Step 4: Next, enter the command “sudo add-apt-repository ppa:eugenesan/java” then press Enter.
If the system prompts to continue or stop, simply press Enter to proceed.
Step 5: Then, enter the following two commands one by one, each taking about 30 seconds to complete.
Type “sudo apt-get update” then press Enter.
Type “sudo apt-get install oracle-java7-installer” then press Enter.
Step 6: Go back to the Dashboard to check, and you will see that Oracle Java 7 has been successfully installed.
