Install Java8 in Ubuntu

A set of commands to install Java8 on Ubuntu.


sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Now set JAVA_HOME in the environment variables.

sudo vi /etc/environment
// add
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
// save

// reload
source /etc/environment

// check
echo $JAVA_HOME

0 nhận xét:

Đăng nhận xét