Skip site navigation (1) Skip section navigation (2)

Site Navigation

FreeBSD Java™ Project: How To Install

When installing Java on FreeBSD you have the choice between different Java Development Kits:

Native JDK on FreeBSD

This is the effort of the Java 2 FreeBSD porting project. By the use of patchsets and the JDK source code released by Sun, this port builds a native JDK for FreeBSD.

cd /usr/ports/java/jdk14
make install clean

Sun JDK for Linux

This port installs the Java 2 Developement Kit from Sun which was built for Linux. It will run under FreeBSD using the Linux compatibility.

cd /usr/ports/java/linux-sun-jdk14
make install clean

IBM JDK for Linux

This is an implementation of the Java 2 Standard Edition SDK, version 1.4 for Linux by IBM. It contains IBM's just-in-time compiler, enhanced with a unique Mixed Mode Interpreter and a re-engineered Java 2 virtual machine.

cd /usr/ports/java/linux-ibm-jdk14
make install clean

Blackdown JDK for Linux

Blackdown Java Developer Kit 1.4.1. It includes the HotSpot Client and Server VMs, as well as an enhanced version of Java Web Start 1.2, a Java Plug-In for browsers based on Mozilla and a Java Plug-In for Netscape 4.x browsers.

cd /usr/ports/java/linux-blackdown-jdk14
make install clean

Note: Please note that due to the current Sun licensing policy the resulting binaries can not be distributed and you are only permitted to use/hack it personally. Due to the same reasons you have to manually fetch the source code and patchset for FreeBSD.

If you should have trouble, you can see the FreeBSD Handbook section on "installing applications" for help.