2:47:24 PM: daiyiy@cn.ibm.com - Yi Yang YY Dai/China/Contr/IBM: Download the jdk file e.g. jdk.tgz
tar zxvf jdk.tgz to extract the tgz file
Change to root user
Create a new file named java.sh using vi /etc/profile.d/java.sh
input the next in the java.sh
#set java env
JAVA_HOME=<path to the jdk>
CALSSPATH=.:$JAVA_HOME/lib/tool.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
wq to save and quit
Restart the system
In the terminal input java -version to check if successful
Note there is no space in the java.sh file
4万+




被折叠的 条评论
为什么被折叠?



