[Bug 293756] Mk/Uses/java.mk: prefer latest LTS openjdk

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Mar 2026 17:40:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293756

--- Comment #2 from Ronald Klop <ronald@FreeBSD.org> ---
(In reply to Harald Eilertsen from comment #1)
If you go into a java port like /usr/ports/biology/gatk and type:
$ make "JAVA_VERSION=11 17 25" java-debug

, you will get output with the decisions made. It shows the possible JDKs, the
installed JDKs and the intersection of the two lists and what JDK is chosen for
JAVA_PORT_VERSION to actually use.

In your example it would indeed choose openjdk 11 because that is already
installed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.