-1

I want to install Oracle Java (JRE) from the official website.And set it as default.

Dan
  • 3,418
  • 6
  • 23
  • 32

1 Answers1

0

You can install Java by adding the Oracle Java (JDK) 6 / 7 / 8 Installer PPA to your systems software sources.To add the PPA and install Oracle Java 8 open a terminal window (press Ctrl+Alt+T) and copy+paste the following lines:

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

When Java is installed you can close the terminal window.

This is the easiest way i know to install java on Ubuntu.

muru
  • 197,895
  • 55
  • 485
  • 740
tinuz
  • 3,952