Headless Java 22?

You'll have to build your own version from ports, without the xorg use flag. See here:

Section 4.5.2.1 is particularly relevant.
 
java/openjdk8 had a X11 OPTION you could switch off (it was on by default), that seems to have disappeared with java/openjdk11. Don't know why. It also insists on pulling in CUPS and everything around it. So that option has gone now too.

A 'flavored' port would have been nice though, pkg install openjdk22-nox11 for example. But maybe that's not possible anymore with the newer OpenJDK versions, I don't know, not a Java expert. Also not much of a Java coder. Just need Java to run some Java based applications (Jenkins, Puppetserver), those worked fine on the no X11, no CUPS, no kitchen-sink Java.
 
Back
Top