1, download JDK official website (jdk-6u22-linux-x64.bin: I am 64-bit Fedora14 OH) 2 ,. /jdk-6u22-linux-x64.bin run. /jdk-6u22-linux-x64.bin3, mkdir/worksoft create directory under the root/worksoft directory 4, mvjdk-6u22/worksoft/jdk copy the result of step 1 to the/worksoft directory
1, download JDK official website (jdk-6u22-linux-x64.bin: I am a 64-bit Fedora14 OH)
2./jdk-6u22-linux-x64.bin
Run./jdk-6u22-linux-x64.bin
3. mkdir/worksoft
Create directory/worksoft directory under root
4, music jdk-6u22/worksoft/jdk
Copy the result of step 1 to the/worksoft directory.
5. vi/etc/profile
Configure Environment Variables
Export JAVA_HOME =/worksoft/jdk
Export JAVA_BIN =/worksoft/jdk/bin
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
6. Establish a connection to replace the default GCJ
Ln-s-f/worksoft/jdk/jre/bin/java
Ln-s-f/worksoft/jdk/bin/javac
7. The configuration is complete. restart the computer.