freebsd安装JDK1.6 及一些小问题

我们到/usr/ports/java/jdk16安装jdk16的时候,直接stop了。原来这个安装包是需要我们自己到http: //download.java.net/jdk6/6u3/promoted/b05/index.html把三个安装包下载到/usr/ports /distfiles,才能安装的。
那我们就先下载:
wget http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
wget http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
wget http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar


还 要到http://java.sun.com/javase/downloads/index.jsp下载
JDK DST Timezone Update Tool - 1.3.6
这里需要注册的,下载了以后上传到服务器/usr/ports/distfiles
______________________________________________________________________________________________
关于JDK DST Timezone Update Tool - 1.3.6  官网是另一个新的版本

cd /usr/ports/java/JDK16
make config
把关于升级的选项勾掉
cd /usr/ports/java/diblo-jdk16
make config
把关于升级的选项勾掉
____________________________________________________________________________________________-
另 外还要到http://www.eyesbeyond.com/freebsddom/java/JDK16JRLConfirm.html下载
bsd-jdk16-patches-4.tar.bz2
然 后上传到服务器/usr/ports/distfiles

还要到http://www.FreeBSDFoundation.org /cgi-bin/download?download=diablo-caffe-freebsd6-i386-1.6.0_07-b02.tar.bz2
下 载diablo-caffe-freebsd6-i386-1.6.0_07-b02.tar.bz2
然后上传到服务器/usr/ports /distfiles

都下载好了,我们再进入jdk16目录开始安装了
cd /usr/ports/java/jdk16
make install clean
_____________________________________________________________________________________________
安装一会就会发现这个  继续下载到/usr/ports /distfiles

Because of licensing restrictions, you must fetch the distribution
manually.

Please access

http://www.FreeBSDFoundation.org/cgi-bin/download?download=diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2

with a web browser and "Accept" the End User License Agreement for
"Caffe Diablo 1.6.0".

Please place the downloaded file(s) in /usr/ports/distfiles.
————————————————————————————————————————————————
然后在/etc/profile添加以下几句信息
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin:/usr/java/jdk1.5.0_07/jre/bin
export JAVA_HOME=/usr/java/jdk1.5.0_07
export CLASSPATH="./:/usr/java/jdk1.5.0_07/lib:/usr/java/jdk1.5.0_07/jre/lib"
export LD_LIBRARY_PATH=/usr/java/jdk1.5.0_07/jre/lib/i386:/usr/java/jdk1.5.0_07/jre/lib/ 

你可能感兴趣的:(freebsd安装JDK1.6 及一些小问题)