JDK等环境配置

到oracle.com官网下载jdk1.6×××.bin文件

直接执行bin文件即可:

#cd /app/setup/

#chmod u+x jdk1.6*.bin

#./jdk1.6*.bin

#mv ./jdk.1.6*/  /app/bin/

JDK环境配置:

#vi /etc/profile

在最后面加入

#set java environment

JAVA_HOME=/app/bin/java1.6

CLASSPATH=.:$JAVA_HOME/lib/tools.jar

PATH=$JAVA_HOME/bin:$PATH

export JAVA_HOME CLASSPATH PATH

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *