View Source

Welcome to the [OpenJDK|http://openjdk.java.net] [BSD Port|http://openjdk.java.net/projects/bsd-port/] wiki.

In order to be able to edit pages in this wiki, please read the [blog post|http://robilad.livejournal.com/111187.html] explaining how to become an editor.

h2. Installing

Some operating systems include packages of the BSD port. Some of them use OpenJDK 7, others use a backport of the BSD port to OpenJDK 6.

h3. OpenJDK 6

h4. FreeBSD

There is an OpenJDK 6 package in the [FreeBSD Ports|http://en.wikipedia.org/wiki/FreeBSD_Ports] collection called [openjdk6|http://www.freshports.org/java/openjdk6/].

h4. Darwin/Mac OS X

There is an OpenJDK 6 package in [MacPorts|http://en.wikipedia.org/wiki/MacPorts] called [openjdk6|http://www.macports.org/ports.php?by=name&substr=openjdk6]. To install it, after installing MacPorts, use *sudo port install openjdk6* in the Terminal application.
If you do not see the openjdk6 port, try *sudo port sync*.

h3. OpenJDK 7

h4. FreeBSD

There is an OpenJDK 7 package in the [FreeBSD Ports|http://en.wikipedia.org/wiki/FreeBSD_Ports] collection called [openjdk7|http://www.freshports.org/java/openjdk7/].

h4. NetBSD

There is an OpenJDK 7 package in the pkgsrc package collection for [NetBSD|http://www.netbsd.org]/i386 and NetBSD/amd64
called [openjdk7|http://pkgsrc.se/lang/openjdk7].

h4. DragonFly BSD

The pkgsrc [openjdk7|http://pkgsrc.se/lang/openjdk7] package is also available for the [DragonFly BSD|http://www.dragonflybsd.org] i386 arch.

h4. OpenBSD

There is an OpenJDK 7 package in the [OpenBSD|http://openbsd.org] packages collection called [jdk1.7|http://openports.se/devel/jdk/1.7].

h4. Mac OS X

You will find unofficial packages of OpenJDK for Mac OS X (Snow Leopard) regulary built from sources, and the scripts used to build them on the projet [openjdk-osx-build|http://code.google.com/p/openjdk-osx-build]


h2. Building from source

h3. Mac OS X

[Mac OS X 10.5|Darwin9Build] and [Mac OS X 10.6|Darwin10Build], could be adapted from [http://www.javarants.com/2009/11/01/building-openjdk-1-7-0-for-mac-os-x-10-6-snow-leopard/])

h2. Switching Current JDK

Instructions for switching the current version of java visible to the OS on [OpenBSD|Switching Java Versions on OpenBSD], [NetBSD|Switching Java Versions on NetBSD], and [Mac OS X|Switching Java Versions on Mac OS X].

{section}


{column:width=60%}
{recently-updated}
{column}
{column:width=5%}
{column}
{column:width=35%}

h6. Navigate space
{pagetreesearch}
{pagetree}
{column}
{section}