notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details on branch 2025Q4
openjdk21 Java Development Kit 21
21.0.12+8.2_1 java on this many watch lists=4 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 21.0.10+7.1_1Version of this port present on the latest quarterly branch.
Maintainer: java@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-10-23 04:27:08
Last Update: 2026-07-31 11:19:41
Commit Hash: a86e7f3
People watching this port, also watch:: iridium-browser, icewm, tmux, python311, pkg
Also Listed In: devel
License: GPLv2
WWW:
https://openjdk.java.net/projects/jdk/21/
Description:
An open-source implementation of the Java Platform, Standard Edition,
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (3 items)
Collapse this list.
  1. /usr/local/share/licenses/openjdk21-21.0.12+8.2_1/catalog.mk
  2. /usr/local/share/licenses/openjdk21-21.0.12+8.2_1/LICENSE
  3. /usr/local/share/licenses/openjdk21-21.0.12+8.2_1/GPLv2
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • openjdk21>0:java/openjdk21
To install the port:
cd /usr/ports/java/openjdk21/ && make install clean
To add the package, run one of these commands:
  • pkg install java/openjdk21
  • pkg install openjdk21
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: openjdk21
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 i386 powerpc64 powerpc64le
distinfo:
TIMESTAMP = 1785494380 SHA256 (openjdk21-21.0.9+10.1.aarch64.tar.xz) = 052d140fea683803564374814f9feb1b0cee701d22727e8d2a6680befa8693d3 SIZE (openjdk21-21.0.9+10.1.aarch64.tar.xz) = 169292956

Expand this list (10 items)

Collapse this list.

SHA256 (openjdk21-21.0.9+10.1.ppc64.tar.xz) = 64c4a6387290c5d478d1244f838996dda9679eebc8b34a167d2e9a5909ce06b8 SIZE (openjdk21-21.0.9+10.1.ppc64.tar.xz) = 168088740 SHA256 (openjdk21-21.0.9+10.1.ppc64le.tar.xz) = 679118e89ff636a3688d36c2df1941c4cb7173eda4702068c60d744b6bb8bcb0 SIZE (openjdk21-21.0.9+10.1.ppc64le.tar.xz) = 169029108 SHA256 (openjdk21-21.0.9+10.1.x86.tar.xz) = cba9629d42a7e4dc8ac62f0c4e81d5e779841d5955361fad1d030469850c0811 SIZE (openjdk21-21.0.9+10.1.x86.tar.xz) = 165180812 SHA256 (openjdk21-21.0.9+10.1.x86_64.tar.xz) = d62c90a58d5acf486e62ff2460708ec7d9ef8704de8e88a5a3551ef8dbae0587 SIZE (openjdk21-21.0.9+10.1.x86_64.tar.xz) = 171175000 SHA256 (battleblow-jdk21u-jdk-21.0.12+8-2_GH0.tar.gz) = ac74fa27c3e368d5a3af4f537f8b68a830907a8da1541d167dccf27aa7ea7037 SIZE (battleblow-jdk21u-jdk-21.0.12+8-2_GH0.tar.gz) = 114276355

Collapse this list.


Packages (timestamps in pop-ups are UTC):
openjdk21
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest21.0.10+7.1_121.0.10+7.1_1--21.0.10+7.1_1n/an/an/a
FreeBSD:13:quarterly21.0.10+7.1_121.0.10+7.1_1--21.0.10+7.1_1n/an/an/a
FreeBSD:14:latest21.0.12+8.2_121.0.12+8.2_1--21.0.12+8.2_1---
FreeBSD:14:quarterly21.0.10+7.1_121.0.10+7.1_1--21.0.10+7.1_1--21.0.1+12.1
FreeBSD:15:latest21.0.12+8.2_121.0.12+8.2_1n/a-n/an/a21.0.1+12.121.0.2+13.1_1
FreeBSD:15:quarterly21.0.10+7.1_121.0.10+7.1_1n/a-n/an/a--
FreeBSD:16:latest21.0.12+8.2_121.0.12+8.2_1n/a-n/an/a--
Slave ports:
  1. java/openjdk21-jre
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. zip : archivers/zip
  2. autoconf>0 : devel/autoconf
  3. cups.h : print/cups
  4. bash : shells/bash
  5. gsed : textproc/gsed
  6. gmake>=4.4.1 : devel/gmake
  7. pkgconf>=1.3.0_1 : devel/pkgconf
  8. gcc14 : lang/gcc14
  9. as : devel/binutils
  10. x11.pc : x11/libX11
  11. xext.pc : x11/libXext
  12. xi.pc : x11/libXi
  13. xrandr.pc : x11/libXrandr
  14. xrender.pc : x11/libXrender
  15. xt.pc : x11-toolkits/libXt
  16. xtst.pc : x11/libXtst
Runtime dependencies:
  1. javavm : java/javavmwrapper
  2. xorg-fonts-truetype>0 : x11-fonts/xorg-fonts-truetype
  3. gcc14 : lang/gcc14
  4. x11.pc : x11/libX11
  5. xext.pc : x11/libXext
  6. xi.pc : x11/libXi
  7. xrandr.pc : x11/libXrandr
  8. xrender.pc : x11/libXrender
  9. xt.pc : x11-toolkits/libXt
  10. xtst.pc : x11/libXtst
Library dependencies:
  1. libasound.so : audio/alsa-lib
  2. libfontconfig.so : x11-fonts/fontconfig
  3. libfreetype.so : print/freetype2
  4. libgif.so : graphics/giflib
  5. libharfbuzz.so : print/harfbuzz
  6. liblcms2.so : graphics/lcms2
  7. libpng.so : graphics/png
  8. libjpeg.so : graphics/jpeg-turbo
This port is required by:
for Build
  1. devel/bazel7
  2. devel/bazel8
  3. devel/bazel9
  4. devel/jetbrains-sqlite
  5. math/scilab
  6. math/usearch
  7. multimedia/kodi
Expand this list (13 items / 6 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. net/dogtag-ldap-sdk
  3. science/py-tensorflow
  4. security/dogtag-jss
  5. security/dogtag-pki
  6. security/zaproxy
  7. Collapse this list.

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. net/seda*
  2. Collapse this list of deleted ports.
for Run
  1. astro/josm
  2. deskutils/freeplane
  3. devel/bazel7
  4. devel/bazel8
  5. devel/bazel9
  6. devel/javafx-jars
  7. math/scilab
Expand this list (20 items / 13 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. math/usearch
  3. net/dogtag-ldap-sdk
  4. net/serviio
  5. science/py-tensorflow
  6. security/autofirma
  7. security/dogtag-jss
  8. security/dogtag-pki
  9. security/zaproxy
  10. sysutils/logstash94
  11. textproc/opensearch219
  12. Collapse this list.

Deleted ports which required this port:

Expand this list of 3 deleted ports
  1. net/seda*
  2. textproc/elasticsearch7*
  3. www/glassfish4*
  4. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
No options to configure
Options name:
java_openjdk21
USES:
compiler:features cpe gmake iconv jpeg pkgconfig xorg
pkg-message:
For install:
This OpenJDK implementation may require procfs(5) mounted on /proc for some applications. If you have not done it yet, please do the following: mount -t procfs proc /proc To make it permanent, you need the following lines in /etc/fstab: proc /proc procfs rw 0 0
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/battleblow/jdk21u/tar.gz/jdk-21.0.12+8-2?dummy=/
Collapse this list.

There are no commits on branch 2025Q4 for this port