English Chinese (Simplified) (zh_CN)
FreeBSD Java® Project
FreeBSD Java(R) Project
Jump to Java(R)
../gifs/j2j.gif
Getting Java
There are two choices of Java Development Kits on FreeBSD:
OpenJDK
The OpenJDK(R) project provides a native open-source implementation of the Java(R) SE Platform. It is available for all currently supported FreeBSD releases in the following combinations of versions (by architecture):
*aarch64*: `openjdk8`, `openjdk11`, `openjdk12`, `openjdk13`
*amd64*: `openjdk7`, `openjdk8`, `openjdk11`, `openjdk12`, `openjdk13`
*arm6*: `openjdk8`
*arm7*: `openjdk8`
*i386*: `openjdk7`, `openjdk8`, `openjdk11`, `openjdk12`, `openjdk13`
*powerpc*: `openjdk8`
*powerpc64*: `openjdk8`, `openjdk11`, `openjdk12`, `openjdk13`
OpenJDK(R) is frequently updated, and it is suggested to refer to https://svnweb.freebsd.org/ports/head/java/[revision logs] for detailed release history. Additionally, one may choose to review more information at https://www.freshports.org/search.php?query=openjdk&search=go&num=10&stype=name&method=match&deleted=excludedeleted&start=1&casesensitivity=caseinsensitive[FreshPorts].
To install OpenJDK(R) package use the link:https://www.freebsd.org/cgi/man.cgi?query=pkg[`pkg`] utility or the ports system:
`pkg install openjdk[version]`
or
`cd /usr/ports/java/openjdk[version]`