Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to install Oracle Java (JRE and JDK) On Ubuntu Linux
ChannelTech SamDescription from the creator
Its very easy just follow the steps:
1::Download the Oracle Java JDK for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz).
For example, if you are on Ubuntu Linux 32-bit operating system download 32-bit Oracle Java binaries.
For example, if you are on Ubuntu Linux 64-bit operating system download 64-bit Oracle Java binaries.
Optional, Download the Oracle Java JDK Documentation
Select jdk-8u20-apidocs.zip
Important Information: 64-bit Oracle Java binaries do not work on 32-bit Ubuntu Linux operating systems, you will receive multiple system error messages, if you attempt to install 64-bit Oracle Java on 32-bit Ubuntu Linux.
2::Copy the Oracle Java binaries into the /usr/local/java directory. In most cases, the Oracle Java binaries are downloaded to: /home/"your_user_name"/Downloads.
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-i586.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-x64.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
3::Unpack the compressed Java binaries, in the directory /usr/local/java
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-i586.tar.gz
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-x64.tar.gz
4::Double-check your directories. At this point, you should have two uncompressed binary directories in /usr/local/java for the Java JDK/JRE listed as:
How do I install Java on Ubuntu?
Still have a question? Ask your own!
What is your question?
Ad by DigitalOcean
DigitalOcean® Linux hosting - free $100/60-day credit.
Sign up now for $100 free credit. Deploy a Linux cloud server with 1vCPU, 1GB RAM and 25GB SSD.
Learn More
9 ANSWERS

Gaurav Jadwani, engineering student,INDIA
Answered Mar 1, 2016
Its very easy just follow the steps:
1::Download the Oracle Java JDK for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz).
For example, if you are on Ubuntu Linux 32-bit operating system download 32-bit Oracle Java binaries.
For example, if you are on Ubuntu Linux 64-bit operating system download 64-bit Oracle Java binaries.
Optional, Download the Oracle Java JDK Documentation
Select jdk-8u20-apidocs.zip
Important Information: 64-bit Oracle Java binaries do not work on 32-bit Ubuntu Linux operating systems, you will receive multiple system error messages, if you attempt to install 64-bit Oracle Java on 32-bit Ubuntu Linux.
2::Copy the Oracle Java binaries into the /usr/local/java directory. In most cases, the Oracle Java binaries are downloaded to: /home/"your_user_name"/Downloads.
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-i586.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-x64.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
3::Unpack the compressed Java binaries, in the directory /usr/local/java
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-i586.tar.gz
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-x64.tar.gz
4::Double-check your directories. At this point, you should have two uncompressed binary directories in /usr/local/java for the Java JDK/JRE listed as:
Type/Copy/Paste: ls -a
jdk1.8.0_20
jre1.8.0_20
5::Edit the system PATH file /etc/profile and add the following system variables to your system path. Use nano, gedit or any other text editor, as root, open up /etc/profile.
Type/Copy/Paste: sudo gedit /etc/profile
or
Type/Copy/Paste: sudo nano /etc/profile
6::Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your /etc/profile file:
Type/Copy/Paste:
JAVA_HOME=/usr/local/java/jdk1.8.0_20
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH
7::Save the /etc/profile file and exit.
8::Inform your Ubuntu Linux system where your Oracle Java JDK/JRE is located. This will tell the system that the new Oracle Java version is available for use.
Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1
this command notifies the system that Oracle Java JRE is available for use
Type/Copy/Pa
1::Download the Oracle Java JDK for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz).
For example, if you are on Ubuntu Linux 32-bit operating system download 32-bit Oracle Java binaries.
For example, if you are on Ubuntu Linux 64-bit operating system download 64-bit Oracle Java binaries.
Optional, Download the Oracle Java JDK Documentation
Select jdk-8u20-apidocs.zip
Important Information: 64-bit Oracle Java binaries do not work on 32-bit Ubuntu Linux operating systems, you will receive multiple system error messages, if you attempt to install 64-bit Oracle Java on 32-bit Ubuntu Linux.
2::Copy the Oracle Java binaries into the /usr/local/java directory. In most cases, the Oracle Java binaries are downloaded to: /home/"your_user_name"/Downloads.
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-i586.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-x64.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
3::Unpack the compressed Java binaries, in the directory /usr/local/java
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-i586.tar.gz
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-x64.tar.gz
4::Double-check your directories. At this point, you should have two uncompressed binary directories in /usr/local/java for the Java JDK/JRE listed as:
How do I install Java on Ubuntu?
Still have a question? Ask your own!
What is your question?
Ad by DigitalOcean
DigitalOcean® Linux hosting - free $100/60-day credit.
Sign up now for $100 free credit. Deploy a Linux cloud server with 1vCPU, 1GB RAM and 25GB SSD.
Learn More
9 ANSWERS

Gaurav Jadwani, engineering student,INDIA
Answered Mar 1, 2016
Its very easy just follow the steps:
1::Download the Oracle Java JDK for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz).
For example, if you are on Ubuntu Linux 32-bit operating system download 32-bit Oracle Java binaries.
For example, if you are on Ubuntu Linux 64-bit operating system download 64-bit Oracle Java binaries.
Optional, Download the Oracle Java JDK Documentation
Select jdk-8u20-apidocs.zip
Important Information: 64-bit Oracle Java binaries do not work on 32-bit Ubuntu Linux operating systems, you will receive multiple system error messages, if you attempt to install 64-bit Oracle Java on 32-bit Ubuntu Linux.
2::Copy the Oracle Java binaries into the /usr/local/java directory. In most cases, the Oracle Java binaries are downloaded to: /home/"your_user_name"/Downloads.
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-i586.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u20-linux-x64.tar.gz /usr/local/java/
Type/Copy/Paste: cd /usr/local/java
3::Unpack the compressed Java binaries, in the directory /usr/local/java
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-i586.tar.gz
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: sudo tar xvzf jdk-8u20-linux-x64.tar.gz
4::Double-check your directories. At this point, you should have two uncompressed binary directories in /usr/local/java for the Java JDK/JRE listed as:
Type/Copy/Paste: ls -a
jdk1.8.0_20
jre1.8.0_20
5::Edit the system PATH file /etc/profile and add the following system variables to your system path. Use nano, gedit or any other text editor, as root, open up /etc/profile.
Type/Copy/Paste: sudo gedit /etc/profile
or
Type/Copy/Paste: sudo nano /etc/profile
6::Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your /etc/profile file:
Type/Copy/Paste:
JAVA_HOME=/usr/local/java/jdk1.8.0_20
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH
7::Save the /etc/profile file and exit.
8::Inform your Ubuntu Linux system where your Oracle Java JDK/JRE is located. This will tell the system that the new Oracle Java version is available for use.
Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1
this command notifies the system that Oracle Java JRE is available for use
Type/Copy/Pa
About this tutorial
Tech Sam published this 6:53 video tutorial on November 13, 2019. It has been watched 745 times on YouTube.
- Channel
- Tech Sam
- Category
- People & Blogs
- Duration
- 6:53
- Published
- November 13, 2019
- Views
- 745
- Likes
- 2
Share
This tutorial in other languages
- FRComment installer Oracle Java (JRE et JDK) sur Ubuntu Linux
- ESCómo instalar Oracle Java (JRE y JDK) en Ubuntu Linux
- PTComo instalar o Oracle Java (JRE e JDK) No Ubuntu Linux
- ITCome installare Oracle Java (JRE e JDK) su Ubuntu Linux
- DEWie Oracle Java (JRE und JDK) auf Ubuntu Linux installieren
- NLHoe kan Oracle Java (JRE en JDK) Op Ubuntu Linux te installeren
- RUКак установить Oracle Java (JRE и JDK) На Ubuntu Linux
- PLJak zainstalować Oracle Java (JRE i JDK) na Ubuntu Linux
- JAUbuntu Linuxの上でのOracleのJava(JREとJDK)をインストールする方法
- ARكيفية تثبيت أوراكل جافا (JRE وجدك) في أوبونتو لينكس
- HIओरेकल जावा (JRE और JDK) उबंटू लिनक्स पर स्थापित करने के लिए
- IDBagaimana menginstal Oracle Java (JRE dan JDK) Pada Ubuntu Linux