Skip to content

Instantly share code, notes, and snippets.

@benlesh
Created February 9, 2014 15:26
Show Gist options
  • Save benlesh/8900631 to your computer and use it in GitHub Desktop.
Save benlesh/8900631 to your computer and use it in GitHub Desktop.
Remove OpenJRE and install Oracle Java 7 on Ubuntu
# Remove OpenJRE stuff
sudo apt-get remove openjre*
# Add PPA to pull down Oracle JRE
sudo add-apt-repository ppa:webupd8team/java
# Get an updated list of packages
sudo apt-get update
# Install java 7
sudo apt-get install oracle-java7-installer
# Check the version
java -version
# Should output something like:
# java version "1.7.0_51"
# Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
# Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
@strong-nguyen
Copy link

Since Oracle update to Java8. Plz change at line 11: sudo apt-get install oracle-java8-installer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment