Software Development, Linux, and Windows

Notes on Software Development, Linux, and Windows

Installing Oracle JDK on Ubuntu

You must run these 3 commands:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

To install Java 7, run this command:

sudo apt-get install oracle-java7-installer

To install Java 8, run this command:

sudo apt-get install oracle-java8-installer

To change the default Java installation, run this command:

sudo update-alternatives --config java

Tags: ,