You are viewing the article How to Install Java on Linux at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 4,041 times.
This wikiHow teaches you how to install the latest version of the Java Runtime Environment (JRE) on your Linux computer.
Steps
Installing on Non-RPM Linux
- You can also click on the Linux X64 version if you want to install 64-bit Java.
- For example, your file might be named “jre-8u151”, this is the 8th version, update 151.
- As of October 2017, you will have to type tar zxvf jre-8u151-linux-i586.tar .
Install on RPM Linux
- You can also click on the Linux RPM X64 version if you want to install 64-bit Java.
- For example, your file might be named “jre-8u151”, which is the 8th version and the 151 update.
- If you do not have root access on the account, you need to enter the password of the account with root access.
- The file name will depend on when you download it. As of October 2017, you will have to type rpm -ivh jre-8u151-linux-i586.rpm and then press ↵ Enter .
Install on Ubuntu (OpenJDK)
- If Java is already installed, you will see a command line report about the current version of Java on your computer.
- If this doesn’t work, try typing sudo apt-get install openjdk-8-jdk instead
Install on Ubuntu 16.04 via PPA
- While this step isn’t technically required, it’s always recommended before we install any content, so it’s a good idea to keep your system up to date to avoid problems.
- You may be asked to enter a password, then type it in and press ↵ Enter , note that no periods or asterisks will appear as you type and this is normal.
Advice
- Although there are ways to load Java using a program interface (such as a graphical user interface – GUI), the installation process takes significantly less time if you use the command line.
Warning
- Oracle Java is no longer supported on Ubuntu. You can use OpenJDK (free version of Oracle Java) instead.
- Oracle does not distribute .deb packages, any .deb packages for Oracle from Oracle come from third parties and may harm your system.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 4,041 times.
This wikiHow teaches you how to install the latest version of the Java Runtime Environment (JRE) on your Linux computer.
Thank you for reading this post How to Install Java on Linux at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: