Headless Java 22?

  • Thread starter Thread starter Deleted member 83117
  • Start date Start date
  • Tags Tags
    java
D

Deleted member 83117

Guest
Is there a headless version of java/openjdk22 that doesn't pull in any X11 dependencies? I noticed there isn't a JRE for anything above java 17.
 
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.
 
Code:
# make config
===> No options to configure
Am I doing something wrong?
 
Back
Top