Resource download address:
1.http://www.sun.com/softwarre/java2/download.html
2.http://ftp.csie.chu.edu.tw/freebsd/distfiles/openmotif/
3.http: //ameba.sc-uni.ktu.lt/pub/freebsd/
4.http://www.Wormwang.Net/mirrors/java/
First, the following packages are going to download in their respective directory (what you need can go to the above address)
/ USR / PORTS / DISTFILES
BSD-JDK14-PATCHES-3.TAR.GZ
Fontconfig-2.2.90.tar.gz
Freetype-2.1.4.tar.bz2
J2SDK-1_4_1-SRC-SCSL.ZIP
J2SDK-1_4_2_01-linux-i586.bin
M4-1.4.tar.gz
Make-3.80.tar.bz2
unzip550.tar.gz
Zcrypt29- EXPORTABLE.ZIP
Zip23.tar.gz
/ usr / ports / distfiles / xc
Wraphelp2.gz
X430SRC-1.TGZ
X430SRC-2. TGZ
X430SRC-3.tgz
X430SRC-4.tgz
X430SRC-5.tgz
X430SRC-6.tgz
X430SRC-7.tgz
/ usr / ports / distfiles / gnome2
Pkgconfig-0.15.0.tar.bz2
/ usr / ports / distfiles / OpenMotif
OpenMotiF-2.2.2.tgz
Second, Linux supports the Ports of the installation / usr / ports / emulators / linux_base, and the middle will prompt for the following operations
# kldload linprocs
# mount -t linprocfs / compat / linux / proc
Third, began to compile and install
CD / USR / PORTS / JAVA / JDK14
#make install clean
Waiting patiently ... (I am P42.0, DDR256, compiled for nearly 6 hours) four, configure .cshrc joins:
STENV alt_bootdir / usr / local / linux-sun-jdk1_4_2_01 / bin / java
STENV alt_javaws_bootdir / usr / local / linux-sun-jdk1_4_2_01 / bin / java
/ etc / fstab joins:
LinProc / Compat / Linux / Proc Linprocfs RW 0 0
V. Set environment variables: ~ / .bashrc Add:
EXPORT JAVA_HOME = / usr / local / linux-sun-jdk1_4_2_01
Export classpath =.: $ java_home / lib: $ java_home / jre / lib: $ java_home / jre
Export Path = $ PATH: $ java_home / bin: $ java_home / jre / bin