1. Check If Java 6 is suitable for logging on to the SUSE11 system ..
1. check whether Java 6 is applicable to the SUSE11 system.
Login http://www.oracle.com/technetwork/java/javase/downloads/index.html
Go to the "Installation Instructions" link, select "Self Extracting linux 64-bit" under Linux, enter the page, and then select "System comprehensions" to check whether jdk of this version supports SUSE11
2. download jdk
Download Linux x64-Self Extracting Installer version (1 is to consider that the machine is 64-bit; 2 is to consider not familiar with rpm)
3. install (root)
1) Download to/usr/local
2) chmod + x jdk-6u27-linux-x64.bin
3)./jdk-6u27-linux-x64.bin
4. view the installation directory
/Opt/sun/javadb/demo/programs/vtis/java
/Opt/sun/javadb/demo/programs/scores/java
/Usr/java
/Usr/local/jdk1.6.0 _ 27/
/Usr/bin/java
5. configure environment variables
Open the/home/xxxUser/. bashrc file,
JAVA_HOME =/usr/java/jdk1.6.0 _ 27
PATH = $ PATH: $ JAVA_HOME/bin
CLASSPATH =.: $ JAVA_HOME/jre/lib/rt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME PATH CLASSPATH
Author: Sun Jie