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