Created
February 15, 2012 08:25
-
-
Save nostream/1834417 to your computer and use it in GitHub Desktop.
install jdk6
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
1 wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586.bin | |
2 chmod +x jdk-6u25-linux-i586.bin | |
3 ./jdk-6u25-linux-i586.bin | |
4 mv jdk1.6.0_25/ /usr/local/jdk1.6.0_25 | |
5 vi /etc/profile | |
export JAVA_HOME=/usr/local/jdk1.6.0_25 | |
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH | |
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH | |
6 source /etc/profile | |
7 java -version | |
java version "1.6.0_25" | |
Java(TM) SE Runtime Environment (build 1.6.0_25-b06) | |
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment