[Bug 266059] java/openjdk*: Create x11 FLAVOR to support headless (no-x11) default

[email protected]
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266059

--- Comment #9 from Harald Eilertsen <[email protected]> ---
(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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.