7

When I look to my up-to-date Ports collection:

cd /usr/ports/java && ls -d openjdk*

… I see only versions 6, 7, and 8 of Java in the OpenJDK releases:

openjdk6 openjdk6-jre openjdk7 openjdk7-jre openjdk8 openjdk8-jre

➥ How does one obtain and install an open-source versions of the Java platform later than 8? That would be versions 9, 10, 11, or 12 of Java? Preferably at least 11, that being the LTS (long-term support) release.

The FreeBSD Java® Project page is suspiciously quiet about anything since Java 8.

I know there are various sources for Java such as:

But none of these offer a BSD-specific release, not that I could find.

Use Java for Linux?

Some of those sources do offer Linux releases. Does Java for Linux run on a FreeBSD machine using the Linux® Binary Compatibility feature?

Is that the usual way to run Java on FreeBSD nowadays?

Previous Questions on this topic

My question here is an updated version of questions such as these listed below. (Much has changed in the Java world since these were posted!)

Basil Bourque
  • 801
  • 1
  • 11
  • 22

1 Answers1

8

Java 11 & 12

OpenJDK 11 and 12 can now be found in the Ports tree. See:

An effort is underway to see future versions of OpenJDK for FreeBSD regularly made available alongside the other OSes such as macOS, Linux, AIX, etc.

Prior versions

During the time of Java 9 & 10 the BSD work was ongoing. While 9 & 10 were skipped, 11 & 12 are available now. Reminder: Java SE 11 is the Long-Term Support (LTS) version according to the new 6-month release cadence adopted by Oracle and the OpenJDK project.

Java 8 was released for BSD, and is available in the Ports tree.

As for running Oracle (Linux) Java - it is possible, but this JRE is unstable. For instance, installing MATLAB using it crashes the installer randomly during the process. However, your mileage may wary.

Basil Bourque
  • 801
  • 1
  • 11
  • 22
arrowd
  • 319
  • 1
  • 8