Last active
August 29, 2015 14:22
-
-
Save notsobad/860749603a8fbb33e3c4 to your computer and use it in GitHub Desktop.
install java
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
cd /opt/ | |
tar xzvf ~/jdk-7u80-linux-x64.tar.gz | |
sudo update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_80/bin/java 1 | |
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_80/bin/javac 1 | |
# vi ~/.bashrc | |
export JAVA_HOME=/opt/jdk1.7.0_80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment