Install Oracle Java8 on Ubuntu

1. Download the linux version of jdk from the official website, and then upload the file to Ubuntu.

Official website download address

2. Create a java folder under the /usr file and give the highest authority

sudo mkdir java
sudo chmod 777 java

3. Unzip to the /usr/java folder, the folder needs to exist

tar -zxvf JDK compressed file name-C /usr/java

4. Configure JAVA_HOME

Add in the /ect/profile file and enter

vim /etc/profile

Add to

# The directory here is the jdk installation directory
export JAVA_HOME=/usr/java/jdk1.8.0_211

# The following are the same
export   CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export   PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export   JRE_HOME=$JAVA_HOME/jre

After adding, run the following command to make the configuration effective

source /etc/profile

4. Check if it is installed

Use the command to check if there is version information, if there is information, it means the installation is complete

java -version

Recommended Posts

Install Oracle Java8 on Ubuntu
How to install Oracle Java 14 on Ubuntu Linux
How to install Java on Ubuntu 20.04
Install Oracle 11gR2 on Ubuntu Server 12.4.0
Install Redis on Ubuntu
Install R4 on ubuntu20
Install Java on Centos 7
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install Docker on ubuntu18.04
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Install Python3 on Ubuntu 14.04
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
Install Python3 on Ubuntu 16.04
Install KDE on Ubuntu16.04.2
Install Docker on Ubuntu18
Install Python3.7 on Ubuntu
install oracle on centos
Install flashplayer on Ubuntu
How to install Java on Ubuntu 16.04 using Apt-Get
Docker practice (1): install Docker on Ubuntu 16.04
Install ubuntu on virtual machine
Install QQ robot on Ubuntu 16.04
Install Python 3.7 on Ubuntu 18.04 LTS
Install Android Studio on Ubuntu
Install scrapy framework on ubuntu
Install Mysql offline on Ubuntu
Install Odoo 11 stack on Ubuntu 16.04
Install Go locale on Ubuntu16
Install common software on Ubuntu 16.04
Install non-portable QQ on ubuntu
Install Docker on Ubuntu 18.04 offline
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
Install Tenda u12 driver on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
Install Chef server workstation on Ubuntu 18.04
How to install Vagrant on Ubuntu 20.04
How to install Java on CentOS 8
How to install Bacula-Web on Ubuntu 14.04
Install botan2 encryption library on ubuntu
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
Docker ubuntu: install python-PIL-image environment on 14.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04