Last active
August 29, 2015 14:25
-
-
Save joshwiens/f3fb4e49af6619fdb084 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 Oracle Java 7 JDK Install
This file contains hidden or 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
#Adds the PPA from webupd8team and allows apt-get access to the oracle Java 7 JDK | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
#Installs Oracle Java 7 JDK | |
sudo apt-get install oracle-java7-installer | |
#Note the system path for java-7-oracle | |
sudo update-alternatives --config java | |
#Same selection as above | |
sudo update-alternatives --config javac | |
#Modify JAVA_HOME and set path displayed from update-alterantives | |
sudo vim /etc/environment | |
#First line of environment file ( Sets java_home at the systme level ) | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle" | |
#Reloads /etc/environment file | |
source /etc/environment | |
#Verifies java version | |
echo $JAVA_HOME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment