FreeBSD Status Report
Report Entry
Improve OpenJDK on FreeBSD
Links:
Project description URL: https://freebsdfoundation.org/project/improving-openjdk-on-freebsd/
Project repository URL: https://github.com/freebsd/openjdk
Upstream BSD port repo URL: https://github.com/openjdk/bsd-port
Contact:
Harald Eilertsen <haraldei@FreeBSD.org>
FreeBSD Java mailing list <freebsd-java@lists.freebsd.org>
The goal of this project is to improve OpenJDK support for FreeBSD/amd64 and FreeBSD/arm64.
Java is an important runtime environment for many high performance, critical enterprise systems. Making sure Java based applications run correctly and efficiently on FreeBSD is important to ensure that FreeBSD will continue to be a viable and attractive platform for enterprises, as well as businesses and organizations of all sizes.
This quarter, a few rather big, invasive features have been merged upstream (JEP 401: Value Objects and JEP 539: Strict Field Initialization), meaning that it has been difficult to get reviews and acceptance for our changes in this period. We have spent the time on fixing issues with the BSD port, as well as keeping it up to date with the upstream changes as they have appeared.
The following fixes/improvements have been done in this quarter:
-
Various fixes and enhancements
-
Bug 296945: The
wxneededELF flag is now set on the JDK binaries, allowing java to run on systems with W^X protection enabled. -
Bug 294358: really build headless without installing Xorg libs
-
Removed
USE_LDCONFIGfrom OpenJDK 8 and 11 ports. Fixes Bug 297282: java/openjdk25 - libjava.so does not find libjvm.so -
Only return symbols that match the requested address for dladdr(3) on BSD. This also reverts the default visibility of libjvm symbols back to hidden to avoid exposing internal symbols. This should also make the library faster to load, and less resource hungry.
-
-
Upstream BSD Port:
-
Submitted draft JEP for BSD port upstreaming effort.
-
-
Ports:
-
OpenJDK 26: Update to version 26.0.2
-
OpenJDK 25: Update to version 25.0.4
-
OpenJDK 21: Update to version 21.0.12
-
OpenJDK 17: Update to version 17.0.20
-
OpenJDK 11: Update to version 11.0.32
Sponsor: The FreeBSD Foundation
Last modified on: September 30, 2026 by Harald Eilertsen