Created
February 9, 2014 15:26
-
-
Save benlesh/8900631 to your computer and use it in GitHub Desktop.
Remove OpenJRE and install Oracle Java 7 on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since Oracle update to Java8. Plz change at line 11: sudo apt-get install oracle-java8-installer