[Bug 266059] java/openjdk*: Create x11 FLAVOR to support headless (no-x11) default
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 266059] java/openjdk11: headless build configuration request"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Nov 2025 11:47:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266059 --- Comment #9 from Harald Eilertsen <haraldei@FreeBSD.org> --- (In reply to Michael Osipov from comment #8) The size of the installed jdk is not significantly smaller. It's only the libawt_xawt.so not being built. But it saves you some dependencies. I haven't measured the total size difference including dependencies. The java.awt.headless property is still there, but since the x11/xorg support is not, it's not really needed. I.e. java.awt.GraphicsEnvironment.isHeadless() will always return true. https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/java/awt/GraphicsEnvironment.html#isHeadless() It's worth noting that this only concerns GUI apps using awt. Other toolkits like swt that is not based on awt are still able to display as normal. It may be possible to build a headless JRE, that will save more space on disk as long as you don't need the full jdk (javac, jdb etc.) -- You are receiving this mail because: You are the assignee for the bug.