2.cd /usr/ports/java/diablo-jdk15 make install clean 安装到/usr/local目录下自己改名为jdk1.5.0
4 ee /etc/profile加入
export JAVA_HOME=/usr/local/jdk1.5.0 export CATALINA_HOME=/usr/local/tomcat export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar