Installing Java on FreeBSD

by Peter Jones / April 1, 2009

You can now install Java on FreeBSD using packages that can be downloaded from the FreeBSD Foundation Java Project. You still have to agree to an end-user license agreement when you download the packages and when you install them—which is a bit annoying—but it's still better than the previous installation process.

Installation Process

  1. Install the javavmwrapper port

    # cd /usr/ports/java/javavmwrapper && make install clean

  2. Download the packages for your server architecture and OS version
  3. Install the packages with pkg_add (answering "yes" to the license agreement)

Tags: freebsd java