Friday, September 30, 2016

FreeBSD install JAVA

FreeBSD install JAVA


???????root???????shell, ??????shell, ????http://www.5dlinux.com/article/1/2007/linux_2658.html

1.
cd /usr/ports/java/jdk16

2.
make install clean WITHOUT_WEB=yes

3.
cd /usr/ports/distfiles/
**********************************************************************************************
2????????????????????

???? ???????????????????????????/usr/ports/distfiles/??????
??? ???????????????????????????????????????????????linux wget?
? ????http://miwi.homeunix.com/distfiles/? ????????????????????wget????????????????????????????

??????????freebsd?????????

===>  Vulnerability check disabled, database not found
===>  Found saved configuration for jdk-1.6.0.3p4_14

IMPORTANT: To build the JDK 1.6.0 port, you should have at least
2.5Gb of free disk space in the build area!


 Due to licensing restrictions, certain files must be fetched manually.

 Please download the Update 3 Source from
 http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
 and the Source Binaries from
 http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
 and the Mozilla Headers from
 http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
 .

 Please open http://java.sun.com/javase/downloads/index.jsp
 in a web browser and follow the "Download" link for
 "JDK US DST Timezone Update Tool - 1_3_25" to obtain the
 time zone update file, tzupdater-1_3_25-2009u.zip.

 Please download the patchset, bsd-jdk16-patches-4.tar.bz2, from
 http://www.eyesbeyond.com/freebsddom/java/jdk16.html.

 Please place the downloaded file(s) in /usr/ports/distfiles
 and restart the build.

*** Error code 1

Stop in /usr/ports/java/jdk16.
*** Error code 1

Stop in /usr/ports/java/jdk16.
????????tzupdater-1_3_29-2010f.zip
??????????

***********************************************************************************************
4.
??????????????
cd /usr/ports/java/jdk16

5.
make install clean WITHOUT_WEB=yes
?????????????????

6.
??java -version??????

7.
?????????????http://www.123flashchat.com/download/123flashchat_s.tar.gz

8.
tar zxf 123flashchat_s.tar.gz

9.
cd 123FlashChatx.x/server

10.
vi fcserver

?#INSTALL4J_JAVA_HOME_OVERRIDE
???INSTALL4J_JAVA_HOME_OVERRIDE=/usr/local/jdk1.6.0/
(PS: ??????/usr/local/jdk1.6.0/????????????/usr/local/diablo-jdk1.6.0/ ????)

11.
?./fcserver start?????


Available link for download