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/ 
相關文章
相關標籤/搜索