Install Oracle JDK on Ubuntu


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

# Install JDK 6
sudo apt-get install oracle-java6-installer

# Install JDK 7
sudo apt-get install oracle-java7-installer

# Install JDK 8
sudo apt-get install oracle-java8-installer

# Change default JDK version
sudo update-alternatives --config java
sudo update-alternatives --config javac

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s