Bug 272855 - Mk/bsd.default-versions.mk: update JAVA_DEFAULT to 21
Summary: Mk/bsd.default-versions.mk: update JAVA_DEFAULT to 21
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ronald Klop
URL:
Keywords:
Depends on: 263601 290227 291388 291538 291564 291568 291571 291576 291579 291583 291629 291631 291633 291635 291657 291663 291667 291668 291670 291693 291694 291719 292151 292152 292155 292205 292215 292216 292241 292242 292244 292647 292651 292652 292654 292661 292662 292671 293050 293317
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-31 20:56 UTC by Xin LI
Modified: 2026-03-07 13:06 UTC (History)
13 users (show)

See Also:
ronald: exp-run?


Attachments
git diff to bump JAVA_DEFAULT to 21 (716 bytes, patch)
2026-02-10 18:45 UTC, Ronald Klop
no flags Details | Diff
git diff to bump JAVA_DEFAULT to 21 (1.17 KB, patch)
2026-02-25 21:25 UTC, Ronald Klop
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2023-07-31 20:56:10 UTC
I'd like to modify JAVA_DEFAULT to 17 and request an exp-run with it.

JDK 17 was released in 2021 and is the current LTS.  It is being actively supported (JDK 8 active support was stopped in March 2022) and many port are requiring at least JDK 11.

Making JAVA_DEFAULT 17 would avoid installing JDK 8 for ports that required JDK 11, but also depends on other Java ports that did not specify a version (notably, apache-commons-daemon).
Comment 1 Michael Osipov 2023-08-01 18:49:55 UTC
> (JDK 8 active support was stopped in March 2022)

This is plain wrong: https://endoflife.date/java
There is still a lot of backporting happening.
Comment 2 Xin LI freebsd_committer freebsd_triage 2023-08-01 23:14:43 UTC
(In reply to Michael Osipov from comment #1)
I was referring to https://www.oracle.com/java/technologies/java-se-support-roadmap.html . For JDK 8, "Premier support" was stopped in March 2022.

Switching default JDK version will not prevent ports that required older Java versions from working, by the way.  As of today, only the following ports requires Java 8:

cad/sweethome3d
games/sokobano
java/berkeley-db
java/java3d
java/sqlitejdbc
lang/bsh

sweethome3d, sokobano requires Java 8 features that are removed.

berkeley-db is an Oracle product and I doubt it really requires Java 8.

java3d is outdated and unmaintained.  It is used by sweethome3d so it should probably be forked into two ports, with the ancient version kept to support Java 8 only ports.

sqlitejdbc is abandonware.  Other distributions have moved to @taroleo's fork (https://github.com/xerial/sqlite-jdbc/) and we should probably do the same.

I haven't looked into bsh, but version 2.1.1 is likely to work just fine with newer Java.
Comment 3 Michael Osipov 2023-08-02 18:53:24 UTC
(In reply to Xin LI from comment #2)

This information is irrelevant because there is not Oracle Java for FreeBSD. We care only about OpenJDK.

Your listing listing is complete. devel/nexus2-oss requires Java 8 and likely others which haven't nailed the version.
Comment 4 Antoine Brodin freebsd_committer freebsd_triage 2023-08-03 07:50:33 UTC
Some new failure logs:

https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/snappyjava-1.1.7.5.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/cytoscape-3.6.1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/digital-0.29.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/rxtx-openjdk17-2.2p2_4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/hsqldb-2.3.4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jrrd-1.1.4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/R-cran-rJava-1.0.6_3.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/arduino18-1.8.5_2.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/charva-1.1.4_6.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/flexdock-1.2.4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/ghidra-9.1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/libmatthew-0.8.1_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/luajava-1.1_2.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/sabre-20100501.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/tijmp-0.7_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/dnsjava-2.1.9.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/apache-openoffice-4.1.14_3.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/apache-openoffice-devel-4.2.1678061694_3,4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/gogui-1.4.10.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jin-2.14.1_4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jinput-2.0.10,1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/lizzie-0.6.105_2.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/stendhal-1.35.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jogamp-jogl-2.3.2_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jogl-1.1.1_9.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/apache-commons-beanutils-1.9.4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/aparapi-1.0.0_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/bouncycastle-1.45_2.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/bouncycastle15-1.71.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/javahelp-2.0.05.20170719_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jcommon-1.0.23.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/java-sigar-1.7.3_11.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/kawa-3.1.1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/rhino-1.7.r4_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/apache-commons-math-3.6.1_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jacop-4.8.0.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jtransforms-2.4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/elki-0.7.1.1166_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/freeguide-0.11.1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jbidwatcher-2.5.6_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/signald-0.15.0_2.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/vuze-5.7.4.0_2.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jgroups-2.12.0.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jicmp-1.4.4.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jicmp6-1.2.3.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jsch-0.1.55.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/spread-j-3.17.3_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/pdf-renderer-0.9.1,1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/colt-1.2.0_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/OpenSim-core-4.1_5.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/owasp-dependency-check-3.1.1_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/xml-security-1.5.5_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/facter-3.14.24_3.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/hfsexplorer-0.23.1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jvmtop-0.8.0.27_1.log
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-08-01_13h40m58s/logs/errors/jalingo-0.6.0_3.log
Comment 5 Greg Lewis freebsd_committer freebsd_triage 2023-08-17 06:04:12 UTC
See the link Vladimir posted to a ticket regarding making openjdk11 the default.  This revealed a lot of ports that were Java 8 only.  I fixed some, but there were a lot more to do.  I expect many of them are in the list of build failures provided in the previous comment.  They'll all need to have the Java version set to Java 8 before we can bump the default version.
Comment 6 Thierry Thomas freebsd_committer freebsd_triage 2025-04-04 18:04:16 UTC
Note on bouncycastle: recent releases of this program are partially supported on Java 12, and require at least 14, preferably 15+ .
See https://repo1.maven.org/maven2/org/bouncycastle/ .

The port java/bouncycastle is built whith JDK 15.

It should be a dependency of textproc/apache-poi (POI, for crypto support), but we cannot use it with JRE 8.
Comment 7 Li-Wen Hsu freebsd_committer freebsd_triage 2025-06-17 20:32:27 UTC
I would like to request another exp-run for updating default java version to 21. Thanks!
Comment 8 Antoine Brodin freebsd_committer freebsd_triage 2025-06-23 15:12:28 UTC
Some failure logs:

https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/OpenSim-core-4.1_9.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/R-cran-rJava-1.0.11_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/apache-openoffice-4.1.15_5.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/apache-openoffice-devel-4.2.1750013453,4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/aparapi-1.0.0_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/arduino18-1.8.5_3.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/bouncycastle-1.71_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/charva-1.1.4_7.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/colt-1.2.0_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/cytoscape-3.6.1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/elki-0.7.1.1166_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/flexdock-1.2.4_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/freeguide-0.11.1_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/gkl-0.8.11.9.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jacop-4.8.0.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jalingo-0.6.0_4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/java-sigar-1.7.3_11.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/javahelp-2.0.05.20170719_3.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jbidwatcher-2.5.6_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jchessboard-1.5_5.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jcommon-1.0.23_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jericho-html-3.2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jgroups-2.12.0_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jicmp-1.4.4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jicmp6-1.2.3.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jin-2.14.1_6.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jogamp-jogl-2.3.2_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jogl-1.1.1_10.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jrrd-1.1.4_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jsch-0.1.55_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jtransforms-2.4_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jvmtop-0.8.0.27_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/jxgrabkey-0.3.2_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/kawa-3.1.1_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/libmatthew-0.8.1_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/luajava-1.1_2.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/multimc-0.6.11.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/opsin-3.0.20190223_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/owasp-dependency-check-3.1.1_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/pdf-renderer-0.9.1_1,1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/rxtx-openjdk21-2.2p2_4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/sabre-20100501_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/signald-0.15.0_3.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/spread-j-3.17.3_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/sra-tools-3.2.1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-23_07h19m29s/logs/errors/stendhal-1.35_2.log


https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/OpenSim-core-4.1_9.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/R-cran-rJava-1.0.11_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/apache-openoffice-4.1.15_5.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/apache-openoffice-devel-4.2.1750013453,4.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/arduino18-1.8.5_3.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/bouncycastle-1.71_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/charva-1.1.4_7.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/colt-1.2.0_2.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/elki-0.7.1.1166_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/flexdock-1.2.4_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/freeguide-0.11.1_2.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jacop-4.8.0.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jalingo-0.6.0_4.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/java-sigar-1.7.3_11.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/javahelp-2.0.05.20170719_3.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jbidwatcher-2.5.6_2.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jchessboard-1.5_5.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jcommon-1.0.23_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jericho-html-3.2.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jgroups-2.12.0_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jicmp-1.4.4.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jicmp6-1.2.3.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jin-2.14.1_6.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jogl-1.1.1_10.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jrrd-1.1.4_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jsch-0.1.55_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jtransforms-2.4_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jvmtop-0.8.0.27_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/jxgrabkey-0.3.2_2.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/kawa-3.1.1_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/libmatthew-0.8.1_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/luajava-1.1_2.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/multimc-0.6.11.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/opsin-3.0.20190223_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/owasp-dependency-check-3.1.1_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/pdf-renderer-0.9.1_1,1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/rxtx-openjdk21-2.2p2_4.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/sabre-20100501_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/spread-j-3.17.3_1.log
https://pkg-status.freebsd.org/gohan05/data/134i386-default-foo/2025-06-23_07h19m26s/logs/errors/stendhal-1.35_2.log
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-12-05 00:02:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a99d1c0374efcf52a67557a162c0a34fc4145fa

commit 5a99d1c0374efcf52a67557a162c0a34fc4145fa
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-04 23:59:34 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-05 00:02:25 +0000

    net/jsch: deprecate

    Upstream website does not exist. No ports depend on this. It does not compile on jdk21.
    See also: https://github.com/mwiede/jsch for a fork.
    Oh, and no maintainer.

    PR:     272855

 net/jsch/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 10 Alex Dupre freebsd_committer freebsd_triage 2025-12-05 07:11:52 UTC
Why not trying to switch to openjdk 25 (latest LTS) at this point?
Comment 11 commit-hook freebsd_committer freebsd_triage 2025-12-11 10:57:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=900510e7960e45cd3b49d25acd4a7513edb56d37

commit 900510e7960e45cd3b49d25acd4a7513edb56d37
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 10:54:28 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 10:57:17 +0000

    net/spread-j: only compiles on jdk8 and jdk11

    Error on later JDKs:
    [javac] /wrkdirs/usr/ports/net/spread-j/work/spread-src-3.17.3/java/spread/SpreadConnection.java:1800: error: invalid use of a restricted identifier 'yield'
    [javac]                                         yield();

    PR:     272855
    Approved-by:    no maintainer

 net/spread-j/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 12 commit-hook freebsd_committer freebsd_triage 2025-12-11 13:22:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f3a12dc72aa72af22212e3e37c5f29652eae0cbb

commit f3a12dc72aa72af22212e3e37c5f29652eae0cbb
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 13:20:47 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 13:20:47 +0000

    java/sigar: fix compilation with jdk21

    PR:     272855

 java/sigar/files/patch-bindings_java_build.xml (new)   | 18 ++++++++++++++++++
 ...atch-bindings_java_hyperic__jni_jni-build.xml (new) | 10 ++++++++++
 2 files changed, 28 insertions(+)
Comment 13 commit-hook freebsd_committer freebsd_triage 2025-12-11 19:20:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ae208e43ae3d4b7a6a92ffc73d6325480164582c

commit ae208e43ae3d4b7a6a92ffc73d6325480164582c
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 19:13:03 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 19:20:14 +0000

    science/colt: pin to openjdk8

    It fails on jdk21:
    error: as of release 9, '_' is a keyword, and may not be used as an identifier

    Build.xml also needed an encoding="ISO-8859-1" in the javac target.

    NB: Upstream didn't make a release since 2004.

    PR:     272855
    Approved-by:    no maintainer

 science/colt/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 14 commit-hook freebsd_committer freebsd_triage 2025-12-11 21:10:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3552a7f75007e910aeb9f03cba29c561e6ea5ed3

commit 3552a7f75007e910aeb9f03cba29c561e6ea5ed3
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 21:08:25 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 21:09:51 +0000

    devel/flexdock: allow building with any jdk

    Tested with openjdk21.

    PR:     272855

 devel/flexdock/files/patch-build.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 15 Ronald Klop freebsd_committer freebsd_triage 2025-12-11 21:17:19 UTC
Why is misc/elki in the list of broken ports?

It already has JAVA_VERSION=17 set so it should not build using another jdk when JAVA_DEFAULT=21.
Comment 16 commit-hook freebsd_committer freebsd_triage 2025-12-11 22:02:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b55e9f6ba307431f5c7f94b915a72aff6364db5

commit 3b55e9f6ba307431f5c7f94b915a72aff6364db5
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 21:59:17 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 22:00:50 +0000

    misc/freeguide: allow building with any jdk

    tested with openjdk21

    PR:     272855
    Approved-by:    no maintainer

 misc/freeguide/Makefile              |  1 -
 misc/freeguide/files/patch-build.xml | 20 +++++++++++++++++++-
 2 files changed, 19 insertions(+), 2 deletions(-)
Comment 17 commit-hook freebsd_committer freebsd_triage 2025-12-13 15:02:35 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=40760d4a05b369a5aee3f3f5d0b8e57711ca67ae

commit 40760d4a05b369a5aee3f3f5d0b8e57711ca67ae
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-13 14:58:11 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-13 15:02:01 +0000

    databases/jrrd: pin to openjdk8 and deprecate

    Does not build with openjdk11+.
    Configure explicitly looks for java5 compatible JDK.

    PR:     272855

 databases/jrrd/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
Comment 18 commit-hook freebsd_committer freebsd_triage 2025-12-14 15:54:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=73a7d8d7c7bdf7856138f69532fe214ae2699fd0

commit 73a7d8d7c7bdf7856138f69532fe214ae2699fd0
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 15:52:17 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-14 15:53:25 +0000

    java/javahelp: allow building with jdk21 or jdk25 also

    PR:     272855

 java/javahelp/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 19 commit-hook freebsd_committer freebsd_triage 2025-12-14 16:12:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=168bae91febb9e787526e07ca1eb96c657c336ae

commit 168bae91febb9e787526e07ca1eb96c657c336ae
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 16:09:10 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-14 16:11:16 +0000

    misc/jbidwatcher: pin to jdk8/11 and deprecate

    Upstream website times out.
    Does not build on openjdk17+.

    PR:     272855
    Approved-by:    no maintainer

 misc/jbidwatcher/Makefile                    |  4 ++++
 misc/jbidwatcher/files/patch-build.xml (new) | 11 +++++++++++
 2 files changed, 15 insertions(+)
Comment 20 commit-hook freebsd_committer freebsd_triage 2025-12-14 21:19:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4808d8448d389866c30053a59b2572bdd4533d13

commit 4808d8448d389866c30053a59b2572bdd4533d13
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 21:15:34 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-14 21:18:58 +0000

    net/jicmp: pin to openjdk8

    Configure is checking on java 1.5 which is not compatible with jdk11+.

    PR:     272855
    Approved-by:    no maintainer

 net/jicmp/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 21 commit-hook freebsd_committer freebsd_triage 2025-12-14 21:24:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9570a81c0e4f1156590c802d5d8d7ae28ba55b70

commit 9570a81c0e4f1156590c802d5d8d7ae28ba55b70
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 21:23:22 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-14 21:23:22 +0000

    net/jicmp6:  pin to openjdk8

    Configure is checking on java 1.5 which is not compatible with jdk11+.

    PR:     272855
    Approved-by:    no maintainer

 net/jicmp6/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 22 commit-hook freebsd_committer freebsd_triage 2025-12-15 19:26:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=46d9cce47b48a300661256543894c3d589f7f20c

commit 46d9cce47b48a300661256543894c3d589f7f20c
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-15 19:22:01 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-15 19:26:04 +0000

    java/aparapi: pin to openjdk8-17

    Does not build with JDK21.
        [javac] error: Source option 7 is no longer supported. Use 8 or later.
        [javac] error: Target option 7 is no longer supported. Use 8 or later.

    NB: maybe the build can be easily fixed with jdk21, but that would need more
    time to investigate and my test setup does not have amd64.
    If you use this port, please try and test.

    PR:     272855
    Approved-by:    no maintainer

 java/aparapi/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 23 Mikhail Teterin freebsd_committer freebsd_triage 2025-12-23 17:40:02 UTC
(In reply to commit-hook from comment #9)
> net/jsch: deprecate
>    Upstream website does not exist. No ports depend on this. It does not compile on jdk21.

The jsch-packaged started a new life under https://github.com/mwiede/jsch -- it'd be nice, if a maintainer could be found for it...
Comment 24 Michael Osipov freebsd_committer freebsd_triage 2025-12-23 18:56:17 UTC
I dare to say to any library which is in the ports tree: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291850#c3

Nuke it, unless there is a ports consumer people are better of using Maven, Maven Resolver Ant Tasks, Gradle or something else. There is no reason maintaining something which people aren't using.
Comment 25 Mikhail Teterin freebsd_committer freebsd_triage 2025-12-24 20:26:21 UTC
(In reply to Michael Osipov from comment #24)
> Nuke it, unless there is a ports consumer people are better of using Maven,
> Maven Resolver Ant Tasks, Gradle or something else

If we want consistency, then the same approach -- abandoning ports in favor of each "ecosphere's" respective package-mananger -- should be applied to Python, Ruby, Perl, Javascript, and Go software. Oh, and Rust too!

> only the bundled JARs have been tested and blessed by upstream

This is an unfortunate state of affairs, and we don't succumb to this logic in other places. For example, libjpeg-turbo was a replacement for libjpeg, and we would've dismissed concerns of maintainers/authors of any JPEG-using software about potential incompatibilities as FUD.

We've also gone through some effort to stop depending on the particular version of a shared library in the ports -- the insistence on the exact version of each dependency -- is the exact opposite of that view. The syntax of pom.xml allows specifying version-ranges, but the prevailing opinion in the Java world frowns at that (bizarrely)...

I wish, FreeBSD's Java-people have developed some way to _uniformly_ build Maven-using software -- perhaps, with Mk/Uses/maven.mk -- so that:

1. No individual port for each dependency would be required -- here I agree with Michael -- even if pkg still registered the JARs as runtime dependencies.
2. Different packages using the same dependencies (such as log4j) used the same version (preferably the latest) of each dependency. It'd probably require some standardized manipulations of the upstream's pom.xml -- sort of how we manipulate the "auto" tools, replacing versions with ranges and changing dependency types into "system".
3. Maven repository lived in a standard location -- /usr/ports/distfiles/m2 ?
Comment 26 Michael Osipov freebsd_committer freebsd_triage 2025-12-25 10:29:28 UTC
(In reply to Mikhail Teterin from comment #25)
> > Nuke it, unless there is a ports consumer people are better of using Maven,
> > Maven Resolver Ant Tasks, Gradle or something else
>
> If we want consistency, then the same approach -- abandoning ports in favor
> of each "ecosphere's" respective package-mananger -- should be applied to
> Python, Ruby, Perl, Javascript, and Go software. Oh, and Rust too!

This isn't black an white. Rust and Go have to be compiled natively, but there the download of crates and what ever Go has works from the ports system. Python, Perl and PHP have the same issue, every often native components. I don't know anything about JS and Ruby. As soon as you have native components you depend the system flags and OPTIONs. You can't make them go away by using upstream. See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290653 for Python with uv. Java has very very little native components built with JARs and they do not depend on a specific structure like PHP or Python with site packages do.

> > only the bundled JARs have been tested and blessed by upstream
>
> This is an unfortunate state of affairs, and we don't succumb to
> this logic in other places. For example, libjpeg-turbo was a
> replacement for libjpeg, and we would've dismissed concerns of
> maintainers/authors of any JPEG-using software about potential
> incompatibilities as FUD.

Here again it is ecosystem. In Rust all deps are pinned in the lock file (Makefile.crates).

> We've also gone through some effort to stop depending on the particular
> version of a shared library in the ports -- the insistence on the
> exact version of each dependency -- is the exact opposite of that view.
> The syntax of pom.xml allows specifying version-ranges, but the
> prevailing opinion in the Java world frowns at that (bizarrely)...

In C/C++ symbol versioning likely solves the problem. It is, again, depending in the ecosystem. We (the Apache Maven dev team) have soft-deprecated version ranges because people never really understood/applied them properly and they gave unreliable build results especially ranges like "[1.2,)". As soon as your dep hits 2.0 this might break your build -- hooray!

> I wish, FreeBSD's Java-people have developed some way to _uniformly_
> build Maven-using software -- perhaps, with Mk/Uses/maven.mk -- so that:
>
> 1. No individual port for each dependency would be required
>    -- here I agree with Michael -- even if pkg still registered
>    the JARs as runtime dependencies.
> 2. Different packages using the same dependencies (such as log4j)
>    used the same version (preferably the latest) of each dependency.
>    It'd probably require some standardized manipulations of the
>    upstream's pom.xml -- sort of how we manipulate the "auto" tools,
>    replacing versions with ranges and changing dependency types into "system".
> 3. Maven repository lived in a standard location -- /usr/ports/distfiles/m2 ?

I think your goal is very noble -- but ultimately, IMHO, a waste of time:
* Use Java software as it has been bundled by upstream and modify if necessary -don't recompile
* You'd need to reimplement Maven logic to pull deps (could be done with Resolver Ant Tasks)
* What if deps have repos in the POMs?

For me, this is a huge undertaking where the benefit is questionable. To what I could agree is that if a port requires addtional JARs they should be fetchable conveniently, but then: Why didn't the author a bundle for that? So it boils down to two type of packages: (a) libraries -- standalone pointless, (b) runnables/bundles -- which include everything you need to run it, e.g., Tomcat, Eclipse, Maven, JMeter, Nexus OSS, Jetty, etc.

I think we need sane tradeoff w/o reinventing the wheel.

BTW: PHP's composer suffers from the very same problem. See my port devel/websvn. I was never able to reconcile the ports tree and composer.
Comment 27 Mikhail Teterin freebsd_committer freebsd_triage 2025-12-27 05:07:11 UTC
(In reply to Michael Osipov from comment #26)
> In C/C++ symbol versioning likely solves the problem

I think, you misunderstood, what I was talking about. The version of the library, against which a program was LINKED would still matter to the software, that has just been built. But the port doesn't care -- if you have libjpeg.so.5 already installed on your system, all of JPEG-using software can be linked with that even if graphics/libjpeg is currently installing libjpeg.so.6.

The APIs don't change that often. Loosening up the LIB_DEPENDS by default was a good thing -- and I'm proud to have been part of it :)

> soft-deprecated version ranges

That's quite wrong... Especially for the reasons listed: "people weren't using them correctly". A system with five Java applications, all using log4j, ends up with five different log4j-versions -- because none of the five application-maintainers can be bothered to just depend on ONE version, whichever it is. But they aren't satisfied with just telling you: "you need to provide log4j", because then some clueless reviewer somewhere will say: "it is not ready out of the box".

And then many insist on creating a giant monolithic JAR (which Maven makes too easy), with all of the different dependencies inside it, so a sysadmin has to really stick his head out to split it apart and replace pieces -- because now he has "an unsupported configuration". (Been there, done that.)

Had this line of thinking prevailed earlier, we'd never have had shared libraries either :(

Sorry, I digress.

> I think we need sane tradeoff w/o reinventing the wheel.

The inherent conflict is UNSOLVABLE: application-authors/maintainers care about their one application working on all platforms. Platform people -- like FreeBSD ports-maintainers -- care about all applications working on our one platform.

There is no solution, that both sides would like. Myself a platform person, I think, we ought to CONTINUE the 30+ years tradition of making the apps build on FreeBSD -- and do it the FreeBSD way...
Comment 28 Michael Osipov freebsd_committer freebsd_triage 2025-12-27 11:05:55 UTC
(In reply to Mikhail Teterin from comment #27)

I don't disagree. The problem is unsolvable. We just have to find a compromise we can live with. For me, the compromise is not to dissect everything into bits because it causes too much work. For me, it is to take to upstream bundle and modify as necessary.
Comment 29 commit-hook freebsd_committer freebsd_triage 2026-01-06 08:53:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9c54b58a71deeb7f6bfbf76634ff338eebca4741

commit 9c54b58a71deeb7f6bfbf76634ff338eebca4741
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-01-06 08:48:56 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-01-06 08:52:32 +0000

    devel/libmatthew: allow compilation with any JDK

    PR:     272855
    Approved-by:    no maintainer

 devel/libmatthew/files/patch-Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Comment 30 commit-hook freebsd_committer freebsd_triage 2026-01-06 12:35:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5988586118a47bd6bf7fabbfbe1fa63bcbbea595

commit 5988586118a47bd6bf7fabbfbe1fa63bcbbea595
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-01-06 12:32:53 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-01-06 12:34:51 +0000

    security/owasp-dependency-check: pin to jdk8 and deprecate

    This port is 9 major versions and almost 8 years behind on upstream.
    No maintainer.
    No users in the ports tree.
    Does not compile with jdk11+.

    PR:     272855
    Approved-by:    no maintainer

 security/owasp-dependency-check/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 31 commit-hook freebsd_committer freebsd_triage 2026-01-07 11:44:24 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed03346730796a7586e92ecce9debae3bf20daf9

commit ed03346730796a7586e92ecce9debae3bf20daf9
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-01-07 11:38:45 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-01-07 11:43:29 +0000

    graphics/jogamp-jogl: pin to java 8

    After ignoring the faulty build.xml check which does not recognize that
    JDK11 > JDK1.6, it gave an error for ${target.rt.jar} to set bootclasspath.

    This port needs a maintainer or it might not survive a future prune of openjdk8.
    But is has a port depending on this, so leave it for now.

    PR:     272855
    Approved-by:    no maintainer

 graphics/jogamp-jogl/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 32 Ronald Klop freebsd_committer freebsd_triage 2026-01-07 16:14:47 UTC
All exp-run reports now have fixes or open issues waiting for maintainer feedback.
So after max two weeks (maintainer timeout) I would like to request another exp-run to see if things are good now.
I think this is on track to bump JAVA_DEFAULT to 21 in 2026Q1. Hopefully at the end of January. ☃️
Comment 33 Harald Eilertsen freebsd_committer freebsd_triage 2026-01-07 16:27:10 UTC
(In reply to Ronald Klop from comment #32)
Thats amazing work! Thank you!
Comment 34 commit-hook freebsd_committer freebsd_triage 2026-01-23 12:15:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0bb32f6170f8040ec686c7e597408b1f3923a225

commit 0bb32f6170f8040ec686c7e597408b1f3923a225
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-01-23 12:11:38 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-01-23 12:14:37 +0000

    math/scilab: pin to java 8

    Does not build with jdk11+.

    [javac] /wrkdirs/usr/ports/math/scilab/work/scilab-6.1.1/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java:17: error: package javax.annotation does not exist

    PR:     272855
    Approved-by:    no maintainer

 math/scilab/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 35 commit-hook freebsd_committer freebsd_triage 2026-01-26 10:51:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cddcb216be6df3e4cff1b26e11d4c4fc3fcacfba

commit cddcb216be6df3e4cff1b26e11d4c4fc3fcacfba
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-01-26 09:03:28 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-01-26 10:49:41 +0000

    math/scilab: fix build with jdk8 and JAVA_DEFAULT=21

    When scilab compiles with jdk8 it needs the libraries to be
    compiled with jdk8 also.

    PR:     272855
    Approved-By:    no maintainer
    Fixes:  0bb32f6170f8040ec686c7e597408b1f3923a225 (scilab pin to jdk8)

 devel/flexdock/Makefile | 1 +
 java/jgraphx/Makefile   | 1 +
 2 files changed, 2 insertions(+)
Comment 36 commit-hook freebsd_committer freebsd_triage 2026-02-05 14:06:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f284116e719f06cc746ab5c8885be53466436309

commit f284116e719f06cc746ab5c8885be53466436309
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-05 14:01:41 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-05 14:06:19 +0000

    devel/libmatthew: build for jdk target 8

    - The single consumer (devel/dbus-java) of this port needs jdk 8.
    - Remove java from run depends. This is a library and uses the jdk
    of the application that includes the lib. No need to install extra
    jdk versions.

    PR:     272855
    Approved-by:    no maintainer

 devel/libmatthew/Makefile             | 2 +-
 devel/libmatthew/files/patch-Makefile | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
Comment 37 commit-hook freebsd_committer freebsd_triage 2026-02-05 17:05:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=55cb6cd667eb9026fe2cc0cc2a7ef63bcd986e26

commit 55cb6cd667eb9026fe2cc0cc2a7ef63bcd986e26
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-04 19:53:30 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-05 17:03:53 +0000

    some Maven build ports: pass JAVA_HOME to maven

    When a port defines JAVA_VERSION but during the build multiple
    jdk versions are installed, Maven does not always use the defined
    version if JAVA_HOME is not set in the environment.

    PR:     272855
    Reviewed-by:    https://lists.freebsd.org/archives/freebsd-java/2026-February/003537.html
    Approved-by:    java@

 biology/cytoscape/Makefile               | 3 +++
 cad/digital/Makefile                     | 3 ++-
 games/lizzie/Makefile                    | 2 ++
 math/jacop/Makefile                      | 2 ++
 math/jts/Makefile                        | 2 ++
 science/cdk/Makefile                     | 2 ++
 science/opsin/Makefile                   | 2 ++
 security/owasp-dependency-check/Makefile | 2 ++
 8 files changed, 17 insertions(+), 1 deletion(-)
Comment 38 commit-hook freebsd_committer freebsd_triage 2026-02-06 13:48:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a8f1bb9a37e54e870f83802f381d67e9c485de1

commit 7a8f1bb9a37e54e870f83802f381d67e9c485de1
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-06 13:41:36 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-06 13:42:32 +0000

    devel/tijmp: allow compiling with any jdk

    PR:     272855

 devel/tijmp/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 39 commit-hook freebsd_committer freebsd_triage 2026-02-09 11:46:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9ab5b8b06626e2533d27a6bc704a14af4f7de8f7

commit 9ab5b8b06626e2533d27a6bc704a14af4f7de8f7
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-08 20:06:29 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-09 11:45:30 +0000

    databases/cassandra[34]: allow building with JAVA_DEFAULT=21

    - ant needs to have JAVA_HOME set to the defined JAVA_VERSION

    Reason:
    when apache-ant pulls in openjdk21 as run dependency it will try
    to use it if JAVA_HOME is not set. This gives the error:
    "Java 15 has removed Nashorn, you must provide an engine for running
    JavaScript yourself. GraalVM JavaScript currently is the preferred
    option.", as cassandra needs an older Java version.

    These ports have USES=ant, but override do-build and fetch. That is
    why some special handling is needed.

    PR:     272855
    PR:     293050
    Approved-by:    Angelo Polo (maintainer)

 databases/cassandra3/Makefile |  4 ++--
 databases/cassandra4/Makefile | 10 ++++++----
 2 files changed, 8 insertions(+), 6 deletions(-)
Comment 40 commit-hook freebsd_committer freebsd_triage 2026-02-10 17:29:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4db4235fd22e09cca97d6c7706b2066062b859a3

commit 4db4235fd22e09cca97d6c7706b2066062b859a3
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-10 08:04:05 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-10 17:28:45 +0000

    devel/tijmp: fix typo

    Forgot a line continuation character ('\').

    This resulted in:
    ===>  Patching for tijmp-0.8
    sed: -I or -i may not be used with stdin
    *** Error code 1

    PR:     272855
    Fixes:  7a8f1bb9a37e54e870f83802f381d67e9c485de1 "allow compiling with any jdk"

 devel/tijmp/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 41 Ronald Klop freebsd_committer freebsd_triage 2026-02-10 18:45:46 UTC
Created attachment 267953 [details]
git diff to bump JAVA_DEFAULT to 21

As far as I know all the ports from the previous exp-run are fixed.
I would like to request another exp-run to see if all fall-out is taken care off.
Comment 43 Ronald Klop freebsd_committer freebsd_triage 2026-02-25 21:25:05 UTC
Created attachment 268358 [details]
git diff to bump JAVA_DEFAULT to 21

All Java ports from the exp-run and other Java issues I found are fixed.

Tomorrow morning (Feb 26th, Dutch time CET) I want to commit JAVA_DEFAULT=21 in Mk/bsd.default-versions.mk. See attached patch for the details.
I also have a PORTREVISION bump ready for all ports that use Java.

If your see a major breaking showstopper, please speak up. Otherwise I'm confident that we/I can fix any unexpected fall out very quickly after the default version update.
Comment 44 Alex Dupre freebsd_committer freebsd_triage 2026-02-26 07:55:54 UTC
(In reply to Ronald Klop from comment #43)

I know it's a bit late, but why not to Java 25? Did we try an exp-run with it?
Comment 45 commit-hook freebsd_committer freebsd_triage 2026-02-26 08:02:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=17e021a44eccbfd4fbef6352436f6d7c06a517a6

commit 17e021a44eccbfd4fbef6352436f6d7c06a517a6
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-10 17:33:00 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-26 08:00:31 +0000

    Mk/bsd.default-versions.mk: bump java default to 21

    After an extensive time of testing OpenJDK 21 LTS is now the default
    java version on FreeBSD.
    Some major ports already used Java 21 and some olders ports are now
    pinned to OpenJDK 8 or other versions.

    For armv6/armv7 OpenJDK 11 is the latest version with support
    for these platforms on FreeBSD.

    Thanks to everybody involved in making Java a vivid environment on
    FreeBSD.

    PR:     272855
    Relnotes:       yes

 Mk/bsd.default-versions.mk | 6 +++++-
 UPDATING                   | 8 ++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
Comment 46 commit-hook freebsd_committer freebsd_triage 2026-02-26 08:12:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2baaf16375792e66c71bc985f99e147f90be47fc

commit 2baaf16375792e66c71bc985f99e147f90be47fc
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-25 21:12:38 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-26 08:10:21 +0000

    */*: bump portrevision after java_default=21 update

    PR:     272855

 archivers/apache-commons-compress/Makefile  | 1 +
 archivers/javatar/Makefile                  | 2 +-
 archivers/snappy-java/Makefile              | 1 +
 astro/gpsprune/Makefile                     | 1 +
 astro/josm/Makefile                         | 1 +
 astro/mkgmap-splitter/Makefile              | 1 +
 astro/mkgmap/Makefile                       | 1 +
 astro/osmosis/Makefile                      | 1 +
 astro/traccar/Makefile                      | 1 +
 audio/atunes/Makefile                       | 2 +-
 audio/jid3lib/Makefile                      | 2 +-
 audio/musiccontrol/Makefile                 | 2 +-
 audio/nyquist/Makefile                      | 1 +
 benchmarks/linux-vdbench/Makefile           | 1 +
 benchmarks/scimark2/Makefile                | 2 +-
 benchmarks/typometer/Makefile               | 1 +
 biology/artemis/Makefile                    | 1 +
 biology/bbmap/Makefile                      | 1 +
 biology/canu/Makefile                       | 2 +-
 biology/cytoscape/Makefile                  | 1 +
 biology/ddocent/Makefile                    | 2 +-
 biology/erminej/Makefile                    | 1 +
 biology/fastqc/Makefile                     | 1 +
 biology/figtree/Makefile                    | 1 +
 biology/gatk/Makefile                       | 1 +
 biology/gkl/Makefile                        | 1 +
 biology/igv/Makefile                        | 2 +-
 biology/jalview/Makefile                    | 1 +
 biology/picard-tools/Makefile               | 1 +
 biology/readseq/Makefile                    | 1 +
 biology/sra-tools/Makefile                  | 2 +-
 biology/trimmomatic/Makefile                | 1 +
 cad/digital/Makefile                        | 1 +
 cad/electric-ng/Makefile                    | 2 +-
 cad/fidocadj/Makefile                       | 2 +-
 cad/logisim/Makefile                        | 1 +
 cad/silice/Makefile                         | 2 +-
 cad/surelog/Makefile                        | 1 +
 cad/sweethome3d/Makefile                    | 2 +-
 comms/java-simple-serial-connector/Makefile | 2 +-
 comms/rxtx/Makefile                         | 2 +-
 databases/apache-commons-dbutils/Makefile   | 1 +
 databases/c3p0/Makefile                     | 1 +
 databases/cassandra3/Makefile               | 2 +-
 databases/cassandra4/Makefile               | 1 +
 databases/db18/Makefile                     | 1 +
 databases/db5/Makefile                      | 2 +-
 databases/dbeaver/Makefile                  | 2 +-
 databases/frontbase-jdbc/Makefile           | 2 +-
 databases/hsqldb/Makefile                   | 1 +
 databases/jetbrains-datagrip/Makefile       | 2 +-
 databases/jrobin/Makefile                   | 1 +
 databases/jrrd/Makefile                     | 2 +-
 databases/libgda5/Makefile                  | 2 +-
 databases/liquibase/Makefile                | 1 +
 databases/mariadb-java-client/Makefile      | 1 +
 databases/metabase/Makefile                 | 1 +
 databases/mysql-connector-j/Makefile        | 1 +
 databases/mysql-connector-java51/Makefile   | 1 +
 databases/neo4j/Makefile                    | 2 +-
 databases/openvoxdb8/Makefile               | 1 +
 databases/postgis-jdbc/Makefile             | 1 +
 databases/postgresql-jdbc/Makefile          | 1 +
 databases/powerarchitect/Makefile           | 1 +
 databases/puppetdb8/Makefile                | 1 +
 databases/rocksdb-jni/Makefile              | 2 +-
 databases/sql-workbench/Makefile            | 1 +
 databases/sqldeveloper/Makefile             | 1 +
 databases/squirrel-sql/Makefile             | 1 +
 deskutils/docear/Makefile                   | 2 +-
 deskutils/freemind/Makefile                 | 2 +-
 deskutils/freeplane/Makefile                | 1 +
 deskutils/ganttproject/Makefile             | 1 +
 deskutils/projectlibre/Makefile             | 1 +
 deskutils/stirling-pdf/Makefile             | 1 +
 deskutils/thinkingrock/Makefile             | 2 +-
 devel/R-cran-rJava/Makefile                 | 1 +
 devel/ammonite/Makefile                     | 1 +
 devel/antlr/Makefile                        | 2 +-
 devel/antlr3/Makefile                       | 2 +-
 devel/antlr4/Makefile                       | 1 +
 devel/apache-ant/Makefile                   | 1 +
 devel/apache-commons-configuration/Makefile | 2 +-
 devel/apache-commons-daemon/Makefile        | 2 +-
 devel/apache-commons-io/Makefile            | 1 +
 devel/apache-commons-jxpath/Makefile        | 1 +
 devel/apache-log4j2/Makefile                | 1 +
 devel/apache-rat/Makefile                   | 1 +
 devel/arduino/Makefile                      | 2 +-
 devel/arduino18/Makefile                    | 2 +-
 devel/argouml/Makefile                      | 1 +
 devel/avalon-framework/Makefile             | 2 +-
 devel/bazel/Makefile                        | 1 +
 devel/bazel5/Makefile                       | 1 +
 devel/bfg/Makefile                          | 1 +
 devel/cfr/Makefile                          | 1 +
 devel/charva/Makefile                       | 2 +-
 devel/coursier/Makefile                     | 1 +
 devel/dbus-java/Makefile                    | 1 +
 devel/doctorj/Makefile                      | 2 +-
 devel/flex-sdk/Makefile                     | 1 +
 devel/flex-sdk35/Makefile                   | 2 +-
 devel/flexdock/Makefile                     | 2 +-
 devel/flexjson/Makefile                     | 1 +
 devel/ghidra/Makefile                       | 1 +
 devel/gradle/Makefile                       | 1 +
 devel/gradle5/Makefile                      | 1 +
 devel/gradle6/Makefile                      | 1 +
 devel/gradle62/Makefile                     | 2 +-
 devel/gradle761/Makefile                    | 1 +
 devel/gradle8/Makefile                      | 1 +
 devel/java-findbugs/Makefile                | 2 +-
 devel/jcmdline/Makefile                     | 1 +
 devel/jenkins-lts/Makefile                  | 1 +
 devel/jenkins/Makefile                      | 1 +
 devel/jetbrains-clion/Makefile              | 1 +
 devel/jetbrains-goland/Makefile             | 1 +
 devel/jetbrains-phpstorm/Makefile           | 1 +
 devel/jetbrains-rustrover/Makefile          | 1 +
 devel/jetbrains-sqlite/Makefile             | 1 +
 devel/jetbrains-webstorm/Makefile           | 1 +
 devel/jgoodies-looks/Makefile               | 1 +
 devel/jiic/Makefile                         | 2 +-
 devel/jline/Makefile                        | 1 +
 devel/jna/Makefile                          | 2 +-
 devel/jsap/Makefile                         | 2 +-
 devel/leiningen/Makefile                    | 1 +
 devel/libastylej/Makefile                   | 2 +-
 devel/libmatthew/Makefile                   | 2 +-
 devel/libreadline-java/Makefile             | 2 +-
 devel/libvirt-java/Makefile                 | 1 +
 devel/listserialc/Makefile                  | 1 +
 devel/log4j/Makefile                        | 1 +
 devel/luajava/Makefile                      | 2 +-
 devel/maven/Makefile                        | 1 +
 devel/maven363/Makefile                     | 1 +
 devel/maven39/Makefile                      | 1 +
 devel/mill/Makefile                         | 1 +
 devel/nexus2-oss/Makefile                   | 2 +-
 devel/ocaml-camljava/Makefile               | 1 +
 devel/opengrok/Makefile                     | 1 +
 devel/p5-Inline-Java/Makefile               | 2 +-
 devel/p5-Java/Makefile                      | 2 +-
 devel/pmd/Makefile                          | 1 +
 devel/protobuf-java/Makefile                | 1 +
 devel/py-jep/Makefile                       | 2 +-
 devel/py-omegaconf/Makefile                 | 1 +
 devel/pycharm/Makefile                      | 2 +-
 devel/reposilite/Makefile                   | 1 +
 devel/rubygem-jruby-jars/Makefile           | 1 +
 devel/rubymine/Makefile                     | 2 +-
 devel/sabre/Makefile                        | 2 +-
 devel/sbt/Makefile                          | 1 +
 devel/scalatest/Makefile                    | 1 +
 devel/simian/Makefile                       | 1 +
 devel/slf4j/Makefile                        | 1 +
 devel/smc/Makefile                          | 2 +-
 devel/soapui/Makefile                       | 1 +
 devel/sonar-scanner-cli/Makefile            | 2 +-
 devel/sonarqube-ant-task/Makefile           | 1 +
 devel/sonarqube-community/Makefile          | 2 +-
 devel/spark/Makefile                        | 1 +
 devel/sparsebitset/Makefile                 | 1 +
 devel/staf/Makefile                         | 2 +-
 devel/statcvs/Makefile                      | 2 +-
 devel/statsvn/Makefile                      | 2 +-
 devel/swank-clojure/Makefile                | 1 +
 devel/tijmp/Makefile                        | 1 +
 devel/tinylaf/Makefile                      | 1 +
 devel/umlgraph/Makefile                     | 1 +
 devel/violet/Makefile                       | 1 +
 devel/zanata-cli/Makefile                   | 1 +
 devel/zookeeper/Makefile                    | 1 +
 dns/denominator/Makefile                    | 1 +
 dns/dnsjava/Makefile                        | 1 +
 editors/bined/Makefile                      | 1 +
 editors/drjava/Makefile                     | 2 +-
 editors/jedit/Makefile                      | 1 +
 editors/libreoffice/Makefile                | 2 +-
 editors/omegaT/Makefile                     | 1 +
 editors/treeform/Makefile                   | 1 +
 emulators/edumips64/Makefile                | 1 +
 emulators/javatari/Makefile                 | 2 +-
 filesystems/hfsexplorer/Makefile            | 1 +
 finance/jgnash/Makefile                     | 1 +
 finance/quickfix/Makefile                   | 2 +-
 finance/venice/Makefile                     | 1 +
 ftp/dmachine/Makefile                       | 1 +
 ftp/jftp/Makefile                           | 1 +
 games/blackjackclient/Makefile              | 2 +-
 games/coronapoker/Makefile                  | 1 +
 games/dmjava/Makefile                       | 2 +-
 games/domination/Makefile                   | 1 +
 games/freecol/Makefile                      | 1 +
 games/gogui/Makefile                        | 1 +
 games/java-games-suite/Makefile             | 2 +-
 games/jchessboard/Makefile                  | 2 +-
 games/jin/Makefile                          | 2 +-
 games/jinput/Makefile                       | 1 +
 games/jtans/Makefile                        | 2 +-
 games/jutils/Makefile                       | 2 +-
 games/lizzie/Makefile                       | 2 +-
 games/lwjgl/Makefile                        | 2 +-
 games/lwjgl3/Makefile                       | 2 +-
 games/minecraft-server/Makefile             | 1 +
 games/moagg/Makefile                        | 2 +-
 games/multimc/Makefile                      | 1 +
 games/pcgen/Makefile                        | 2 +-
 games/prismlauncher/Makefile                | 1 +
 games/rescue/Makefile                       | 1 +
 games/robocode-naval/Makefile               | 2 +-
 games/robocode/Makefile                     | 1 +
 games/runelite/Makefile                     | 1 +
 games/sokobano/Makefile                     | 1 +
 games/spicetrade/Makefile                   | 2 +-
 games/stendhal/Makefile                     | 2 +-
 graphics/aoi/Makefile                       | 2 +-
 graphics/batik/Makefile                     | 1 +
 graphics/cbviewer/Makefile                  | 2 +-
 graphics/ditaa/Makefile                     | 1 +
 graphics/geoapi/Makefile                    | 1 +
 graphics/geoserver/Makefile                 | 1 +
 graphics/jalbum/Makefile                    | 1 +
 graphics/jave6/Makefile                     | 2 +-
 graphics/jdraw/Makefile                     | 2 +-
 graphics/jogamp-jogl/Makefile               | 2 +-
 graphics/jogl/Makefile                      | 2 +-
 graphics/jpatch/Makefile                    | 2 +-
 graphics/libpano13/Makefile                 | 1 +
 graphics/lightzone/Makefile                 | 2 +-
 graphics/mapyrus/Makefile                   | 2 +-
 graphics/ogre3d/Makefile                    | 1 +
 graphics/opencv/Makefile                    | 2 +-
 graphics/opendx/Makefile                    | 2 +-
 graphics/openjump/Makefile                  | 1 +
 graphics/plantuml/Makefile                  | 1 +
 graphics/processing/Makefile                | 1 +
 graphics/tintfu/Makefile                    | 2 +-
 graphics/xmlgraphics-commons/Makefile       | 1 +
 graphics/yed/Makefile                       | 1 +
 java/apache-bcel/Makefile                   | 1 +
 java/apache-commons-beanutils/Makefile      | 1 +
 java/apache-commons-cli/Makefile            | 1 +
 java/apache-commons-codec/Makefile          | 1 +
 java/apache-commons-collections/Makefile    | 2 +-
 java/apache-commons-collections4/Makefile   | 1 +
 java/apache-commons-dbcp/Makefile           | 1 +
 java/apache-commons-httpclient/Makefile     | 2 +-
 java/apache-commons-lang/Makefile           | 2 +-
 java/apache-commons-lang3/Makefile          | 1 +
 java/apache-commons-logging/Makefile        | 2 +-
 java/apache-commons-pool/Makefile           | 1 +
 java/aparapi/Makefile                       | 2 +-
 java/avis/Makefile                          | 2 +-
 java/berkeley-db/Makefile                   | 2 +-
 java/bluej/Makefile                         | 2 +-
 java/bouncycastle/Makefile                  | 2 +-
 java/dbvis/Makefile                         | 1 +
 java/eclipse-cdt/Makefile                   | 2 +-
 java/eclipse-drjava/Makefile                | 2 +-
 java/eclipse-ecj/Makefile                   | 2 +-
 java/eclipse-findbugs/Makefile              | 2 +-
 java/eclipse-pydev/Makefile                 | 2 +-
 java/eclipse-shelled/Makefile               | 2 +-
 java/eclipse/Makefile                       | 1 +
 java/hamcrest/Makefile                      | 1 +
 java/icedtea-web/Makefile                   | 2 +-
 java/intellij-ultimate/Makefile             | 1 +
 java/intellij/Makefile                      | 2 +-
 java/jai/Makefile                           | 2 +-
 java/jakarta-oro/Makefile                   | 2 +-
 java/jasmin/Makefile                        | 2 +-
 java/java-cup/Makefile                      | 1 +
 java/java-getopt/Makefile                   | 2 +-
 java/java-subversion/Makefile               | 4 ++--
 java/java3d/Makefile                        | 2 +-
 java/javahelp/Makefile                      | 2 +-
 java/javamail/Makefile                      | 2 +-
 java/javavmwrapper/Makefile                 | 1 +
 java/jcalendar/Makefile                     | 2 +-
 java/jcckit/Makefile                        | 2 +-
 java/jcommon/Makefile                       | 2 +-
 java/jd-gui/Makefile                        | 1 +
 java/jflex/Makefile                         | 1 +
 java/jfreechart/Makefile                    | 2 +-
 java/jgraph/Makefile                        | 1 +
 java/jgraphx/Makefile                       | 2 +-
 java/jlex/Makefile                          | 2 +-
 java/jmf/Makefile                           | 2 +-
 java/jode/Makefile                          | 2 +-
 java/jrosetta/Makefile                      | 2 +-
 java/jtiger/Makefile                        | 1 +
 java/jump/Makefile                          | 2 +-
 java/junit/Makefile                         | 1 +
 java/jxgrabkey/Makefile                     | 2 +-
 java/lightweight-java-profiler/Makefile     | 1 +
 java/netbeans/Makefile                      | 1 +
 java/netrexx/Makefile                       | 2 +-
 java/netty/Makefile                         | 1 +
 java/openjfx14/Makefile                     | 2 +-
 java/phpeclipse/Makefile                    | 2 +-
 java/proguard/Makefile                      | 1 +
 java/sigar/Makefile                         | 2 +-
 java/sqlitejdbc/Makefile                    | 2 +-
 java/trove4j/Makefile                       | 1 +
 java/visualvm/Makefile                      | 1 +
 java/wildfly/Makefile                       | 1 +
 lang/abcl/Makefile                          | 2 +-
 lang/apache-commons-jelly/Makefile          | 2 +-
 lang/bsh/Makefile                           | 2 +-
 lang/ceylon/Makefile                        | 2 +-
 lang/clojure/Makefile                       | 1 +
 lang/erlang-java/Makefile                   | 1 +
 lang/erlang-runtime21/Makefile              | 2 +-
 lang/erlang-runtime22/Makefile              | 2 +-
 lang/erlang-runtime23/Makefile              | 2 +-
 lang/erlang-runtime24/Makefile              | 2 +-
 lang/erlang-runtime25/Makefile              | 2 +-
 lang/erlang-runtime26/Makefile              | 1 +
 lang/erlang-runtime27/Makefile              | 1 +
 lang/erlang-runtime28/Makefile              | 1 +
 lang/erlang/Makefile                        | 2 +-
 lang/groovy/Makefile                        | 1 +
 lang/jruby/Makefile                         | 1 +
 lang/jython/Makefile                        | 1 +
 lang/kawa/Makefile                          | 2 +-
 lang/kotlin/Makefile                        | 1 +
 lang/kotlin22/Makefile                      | 1 +
 lang/linux-j/Makefile                       | 2 +-
 lang/pkl/Makefile                           | 1 +
 lang/rhino/Makefile                         | 2 +-
 lang/scala/Makefile                         | 1 +
 lang/sisc/Makefile                          | 2 +-
 mail/davmail/Makefile                       | 2 +-
 mail/james/Makefile                         | 2 +-
 mail/mime4j/Makefile                        | 2 +-
 math/R-cran-XLConnect/Makefile              | 1 +
 math/apache-commons-math/Makefile           | 2 +-
 math/geogebra/Makefile                      | 1 +
 math/jacop/Makefile                         | 1 +
 math/jeuclid/Makefile                       | 1 +
 math/jlatexmath/Makefile                    | 1 +
 math/jtransforms/Makefile                   | 2 +-
 math/jts/Makefile                           | 1 +
 math/octave/Makefile                        | 1 +
 math/plman/Makefile                         | 2 +-
 math/scilab/Makefile                        | 2 +-
 math/vtk9/Makefile                          | 1 +
 misc/elki/Makefile                          | 2 +-
 misc/freeguide/Makefile                     | 2 +-
 misc/jbidwatcher/Makefile                   | 2 +-
 misc/openhab/Makefile                       | 2 +-
 misc/pauker/Makefile                        | 1 +
 misc/pipe/Makefile                          | 2 +-
 misc/tvbrowser/Makefile                     | 1 +
 multimedia/ffdec/Makefile                   | 1 +
 multimedia/filebot/Makefile                 | 2 +-
 multimedia/libbluray/Makefile               | 1 +
 net-im/convey/Makefile                      | 2 +-
 net-im/jicofo/Makefile                      | 1 +
 net-im/jitsi-srtp-native/Makefile           | 1 +
 net-im/jitsi-videobridge/Makefile           | 1 +
 net-im/openfire/Makefile                    | 1 +
 net-im/signal-cli/Makefile                  | 1 +
 net-im/zkgroup/Makefile                     | 2 +-
 net-mgmt/collectd5/Makefile                 | 2 +-
 net-mgmt/confregdecode/Makefile             | 2 +-
 net-mgmt/midpoint/Makefile                  | 1 +
 net-mgmt/omada5/Makefile                    | 1 +
 net-mgmt/riemann/Makefile                   | 1 +
 net-mgmt/unifi10/Makefile                   | 2 +-
 net-mgmt/unifi9/Makefile                    | 2 +-
 net-mgmt/zabbix6-server/Makefile            | 2 +-
 net-mgmt/zabbix7-server/Makefile            | 2 +-
 net-mgmt/zabbix72-server/Makefile           | 2 +-
 net-mgmt/zabbix74-server/Makefile           | 2 +-
 net/activemq/Makefile                       | 1 +
 net/akhq/Makefile                           | 2 +-
 net/apache-commons-net/Makefile             | 1 +
 net/belle-sip/Makefile                      | 1 +
 net/freeswitch/Makefile                     | 2 +-
 net/java-beepcore/Makefile                  | 2 +-
 net/jcifs/Makefile                          | 1 +
 net/jgroups/Makefile                        | 2 +-
 net/jicmp/Makefile                          | 1 +
 net/jicmp6/Makefile                         | 1 +
 net/jrdesktop/Makefile                      | 1 +
 net/kafka/Makefile                          | 1 +
 net/keycloak/Makefile                       | 1 +
 net/ldapbrowser/Makefile                    | 2 +-
 net/seda/Makefile                           | 2 +-
 net/serviio/Makefile                        | 2 +-
 net/spread-j/Makefile                       | 2 +-
 net/tigervnc-viewer-java/Makefile           | 1 +
 net/tightvnc/Makefile                       | 2 +-
 net/toonel/Makefile                         | 2 +-
 news/nzbhydra2/Makefile                     | 1 +
 print/pdf-renderer/Makefile                 | 2 +-
 print/pdfbox/Makefile                       | 1 +
 print/pdflib/Makefile                       | 2 +-
 print/pdftk/Makefile                        | 2 +-
 science/cdk/Makefile                        | 1 +
 science/colt/Makefile                       | 2 +-
 science/devisor/Makefile                    | 2 +-
 science/hdf/Makefile                        | 1 +
 science/jmol/Makefile                       | 2 +-
 science/opensim-core/Makefile               | 2 +-
 science/opsin/Makefile                      | 2 +-
 science/simsmith/Makefile                   | 2 +-
 security/autofirma/Makefile                 | 1 +
 security/bastillion/Makefile                | 2 +-
 security/dirbuster/Makefile                 | 1 +
 security/iaikpkcs11wrapper/Makefile         | 1 +
 security/owasp-dependency-check/Makefile    | 2 +-
 security/xml-security/Makefile              | 1 +
 security/zaproxy/Makefile                   | 1 +
 sysutils/data-prepper/Makefile              | 1 +
 sysutils/digdag/Makefile                    | 1 +
 sysutils/graylog/Makefile                   | 1 +
 sysutils/javaservicewrapper/Makefile        | 1 +
 sysutils/jdiskreport/Makefile               | 1 +
 sysutils/jtopen/Makefile                    | 1 +
 sysutils/jvmtop/Makefile                    | 2 +-
 sysutils/logstash7/Makefile                 | 1 +
 sysutils/logstash8/Makefile                 | 1 +
 sysutils/logstash91/Makefile                | 1 +
 sysutils/logstash92/Makefile                | 1 +
 sysutils/munin-node/Makefile                | 2 +-
 sysutils/openvox-server8/Makefile           | 2 +-
 sysutils/puppetserver8/Makefile             | 2 +-
 sysutils/rundeck/Makefile                   | 1 +
 sysutils/syslog-ng/Makefile                 | 2 +-
 textproc/apache-commons-csv/Makefile        | 1 +
 textproc/apache-commons-digester/Makefile   | 2 +-
 textproc/apache-poi/Makefile                | 1 +
 textproc/apache-solr/Makefile               | 1 +
 textproc/apache-xmlbeans/Makefile           | 2 +-
 textproc/denature/Makefile                  | 2 +-
 textproc/dtd2relax/Makefile                 | 2 +-
 textproc/elasticsearch7/Makefile            | 1 +
 textproc/elasticsearch8/Makefile            | 1 +
 textproc/fop/Makefile                       | 2 +-
 textproc/jalingo/Makefile                   | 2 +-
 textproc/jarnal/Makefile                    | 1 +
 textproc/jdictionary/Makefile               | 2 +-
 textproc/jing/Makefile                      | 1 +
 textproc/link-grammar/Makefile              | 1 +
 textproc/lucene/Makefile                    | 1 +
 textproc/lucene5/Makefile                   | 1 +
 textproc/opensearch/Makefile                | 1 +
 textproc/opensearch13/Makefile              | 1 +
 textproc/opensearch216/Makefile             | 2 +-
 textproc/opensearch219/Makefile             | 2 +-
 textproc/ppower4/Makefile                   | 2 +-
 textproc/qrcodegen/Makefile                 | 2 +-
 textproc/saxon-he/Makefile                  | 2 +-
 textproc/tagsoup/Makefile                   | 2 +-
 textproc/trang/Makefile                     | 1 +
 textproc/weka/Makefile                      | 1 +
 textproc/xalan-j/Makefile                   | 1 +
 textproc/xerces-j/Makefile                  | 1 +
 textproc/xml-commons/Makefile               | 2 +-
 textproc/xom/Makefile                       | 1 +
 textproc/xstream/Makefile                   | 1 +
 www/archiva/Makefile                        | 1 +
 www/axis2/Makefile                          | 2 +-
 www/closure-compiler/Makefile               | 1 +
 www/glassfish/Makefile                      | 1 +
 www/glassfish4/Makefile                     | 1 +
 www/grails/Makefile                         | 1 +
 www/htmlcompressor/Makefile                 | 2 +-
 www/httpasyncclient/Makefile                | 1 +
 www/httpclient/Makefile                     | 1 +
 www/httpcore/Makefile                       | 1 +
 www/jericho-html/Makefile                   | 1 +
 www/jetty10/Makefile                        | 1 +
 www/jetty12/Makefile                        | 1 +
 www/jmeter/Makefile                         | 2 +-
 www/onlyoffice-documentserver/Makefile      | 1 +
 www/payara/Makefile                         | 1 +
 www/scloader/Makefile                       | 2 +-
 www/selenium/Makefile                       | 1 +
 www/tomcat-devel/Makefile                   | 1 +
 www/tomcat-native/Makefile                  | 1 +
 www/tomcat-native2/Makefile                 | 1 +
 www/tomcat101/Makefile                      | 1 +
 www/tomcat110/Makefile                      | 1 +
 www/tomcat9/Makefile                        | 1 +
 www/tomee/Makefile                          | 2 +-
 www/vertx/Makefile                          | 2 +-
 www/yuicompressor/Makefile                  | 2 +-
 x11-fm/mucommander/Makefile                 | 1 +
 x11-toolkits/skinlf/Makefile                | 1 +
 x11-toolkits/swt/Makefile                   | 2 +-
 494 files changed, 495 insertions(+), 218 deletions(-)
Comment 47 Ronald Klop freebsd_committer freebsd_triage 2026-02-26 08:48:11 UTC
(In reply to Alex Dupre from comment #10)
(In reply to Alex Dupre from comment #44)
Hi, valid question about opendjk25.

I have a couple of reasons for my choice.
For me the most important reasons are:
* Mind that this project started in 2020 with bug #251774 for openjdk11, unfortunately that PR lost traction after quite some effort.
* This PR started in 2023 for an update to 17. Got quite some effort, but the issue lost traction also.
* I first wanted to materialize the investment for the update to 21. This reduces scope creep and reduces the risk of an unfinished project.

And some (IMHO) less important reasons:
* openjdk21 is in the ports tree since Oct 2023 and is used by a couple of other actively used ports, so it is proven to be stable enough for production usage (on FreeBSD).
* openjdk25 is in the ports tree since Oct 2025 and is not used by any other port yet.

Having said that. Locally I already ran a test compile with JAVA_DEFAULT=25 and that looks promising. All the work needed for 21 pays off for the update to 25.

So I'm planning to open an issue for JAVA_DEFAULT=25 and ask for an exp-run, but I will wait with landing that change until the next quarterly (2026Q2) has branched or even later depending on the feedback on the JAVA_DEFAULT=21 change.

If you have specific needs for openjdk25 to be the default, please engage in the java@freebsd.org mailinglist. That can help trigger more feedback on the wish for this.

Regards.
Comment 48 Thierry Thomas freebsd_committer freebsd_triage 2026-02-26 10:01:38 UTC
Great job Ronald!
Comment 49 Alex Dupre freebsd_committer freebsd_triage 2026-02-26 11:17:38 UTC
(In reply to Ronald Klop from comment #47)
Ok, thanks for the work and for the answer. I haven't a real or specific need for java 25 to be the default, it's just the latest LTS version with some interesting new features and I'm actively using it in production environments. I'm fine with your plan.
Comment 50 Ale 2026-02-26 21:43:11 UTC
(In reply to commit-hook from comment #46)
Isn't devel/subversive missing from the list?
Comment 51 Ale 2026-02-26 21:51:02 UTC
(In reply to Ale from comment #50)
Maybe just because JAVA_VERSION on java/eclipse/Makefile.plugins has been bumped on 2025-09-05
https://cgit.freebsd.org/ports/commit/java/eclipse/Makefile.plugins?id=e990be21274b7520e124f1b377221b1796eb1faa

while devel/subversion/Makefile PORTREVISION has been bumped last time few days before on 2025-08-31
https://cgit.freebsd.org/ports/log/devel/subversive/Makefile?id=2baaf16375792e66c71bc985f99e147f90be47fc
Comment 52 Ronald Klop freebsd_committer freebsd_triage 2026-02-27 08:43:55 UTC
(In reply to Ale from comment #50)
Yes,thanks for the notification. I also found that my list was not complete. I missed Makefiles with multiline USES and ports that have USES=java by including other Makefiles.

I now created a new list by running make -V USES on every port and found some missing from the first list.
I will double check this list and bump their portrevisions today if needed.

databases/libgda5-jdbc
devel/RStudio
devel/libastylej-arduino
devel/subversive
editors/openoffice-4
editors/openoffice-devel
french/jdictionary-fre-hun
german/jdictionary-eng-ger
german/jdictionary-ger-hun
hungarian/jdictionary-eng-hun
hungarian/jdictionary-eng-hun-expr
multimedia/kodi
multimedia/tsduck
net-mgmt/zabbix6-java
net-mgmt/zabbix7-java
net-mgmt/zabbix72-java
net-mgmt/zabbix74-java
science/openmodelica
textproc/jdictionary-int-eng
textproc/opensearch210
textproc/opensearch213
Comment 53 commit-hook freebsd_committer freebsd_triage 2026-02-27 10:47:21 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b8618be7ca3350203b65319cdf57e3bbdcb5f23

commit 3b8618be7ca3350203b65319cdf57e3bbdcb5f23
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-02-27 10:43:54 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-02-27 10:46:53 +0000

    */*: bump portrevision after java_default=21 update

    PR:     272855

 databases/libgda5-jdbc/Makefile             | 2 +-
 devel/RStudio/Makefile                      | 2 +-
 devel/subversive/Makefile                   | 2 +-
 editors/openoffice-4/Makefile               | 2 +-
 editors/openoffice-devel/Makefile           | 2 +-
 french/jdictionary-fre-hun/Makefile         | 2 +-
 german/jdictionary-eng-ger/Makefile         | 2 +-
 german/jdictionary-ger-hun/Makefile         | 2 +-
 hungarian/jdictionary-eng-hun-expr/Makefile | 2 +-
 hungarian/jdictionary-eng-hun/Makefile      | 2 +-
 multimedia/kodi/Makefile                    | 2 +-
 multimedia/tsduck/Makefile                  | 2 +-
 net-mgmt/zabbix6-java/Makefile              | 2 +-
 net-mgmt/zabbix7-java/Makefile              | 2 +-
 net-mgmt/zabbix72-java/Makefile             | 2 +-
 net-mgmt/zabbix74-java/Makefile             | 2 +-
 science/openmodelica/Makefile               | 1 +
 textproc/jdictionary-int-eng/Makefile       | 2 +-
 textproc/opensearch210/Makefile             | 2 +-
 textproc/opensearch213/Makefile             | 2 +-
 20 files changed, 20 insertions(+), 19 deletions(-)
Comment 54 Greg Lewis freebsd_committer freebsd_triage 2026-03-05 04:46:26 UTC
I want to second Thierry's comment.  This is great work Ronald, thanks for pushing this through!

With this in place I think we should seriously look at starting the deprecation and deletion process for openjdk8.  I'd say openjdk11 as well although it sounds like it is the most recent one that supports armv6/7
Comment 55 Ronald Klop freebsd_committer freebsd_triage 2026-03-07 09:04:22 UTC
(In reply to Greg Lewis from comment #54)
Thanks. Nice to hear.

Good to know that the idea of the effective openjdk8 maintainers is to deprecate it. It currently has just over 50 ports depending on it. Let's see where we can bring this in the near future.
Comment 56 Ronald Klop freebsd_committer freebsd_triage 2026-03-07 09:12:33 UTC
All actionable items of this PR are done.
The JAVA_DEFAULT=21 is in ports for over a week and on multiple package mirrors.
I didn't get any feedback about regression from these changes.

So I'm closing this now. Follow-ups can be handled via new PRs.

Thanks to everybody involved. There was a lot of pre-work done before I finished it.

Next steps, java_default=25 (bug #293559) and deprecating openjdk8.
Comment 57 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-07 12:29:08 UTC
I highly doubt we'll be able to deprecate Java 8 in the near future.
Comment 58 Michael Osipov freebsd_committer freebsd_triage 2026-03-07 13:06:45 UTC
(In reply to Vladimir Druzenko from comment #57)

Correct, OpenJDK will live until at least 2030 and the Tomcat team, for example, will continue to support Tomcat 9.x on Java 8.