Install the JAVA environment in FreeBSD4.9

Source: Internet
Author: User
Install the JAVA environment-general Linux technology-Linux programming and kernel information under FreeBSD4.9. For details, refer to the following section. Resource:

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/

  

1. download the following packages to their respective directories (you can download everything you need from 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

Ii. Linux support installation

Ports of/usr/ports/emulators/linux_base. The following operations are prompted in the middle.

# Kldload linprocfs

# Mount-t linprocfs/compat/linux/proc

Iii. Start compilation and Installation

Cd/usr/ports/java/jdk14

# Make install clean

Wait patiently... (I have compiled P42.0 and DDR256 for nearly 6 hours)

Iv. Configuration

Add. cshrc:

Setenv ALT_BOOTDIR/usr/local/linux-sun-jdk1_4_2_01/bin/java

Setenv ALT_JAVAWS_BOOTDIR/usr/local/linux-sun-jdk1_4_2_01/bin/java

/Etc/fstab:

Linproc/compat/linux/proc linprocfs rw 0 0

5. Set environment variables:

~ /. Add bashrc:

Export JAVA_HOME =/usr/local/linux-sun-jdk1_4_2_01

Export CLASSPATH =.: $ JAVA_HOME/lib: $ JAVA_HOME/jre

Export PATH = $ PATH: $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin

6. Log On again and test it.

$ Java-version

If the correct version number is output, the operation is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.