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 photosAll times are UTC
Ukraine
Port details
openjdk24 Java Development Kit 24
24.0.2+12.2_3 java on this many watch lists=0 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 24.0.2+12.2_2Version of this port present on the latest quarterly branch.
Deprecated DEPRECATED: No longer supported by upstream
Expiration Date EXPIRATION DATE: 2026-06-12
Maintainer: java@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-03-28 18:51:05
Last Update: 2026-02-23 14:23:56
Commit Hash: 8de6fe6
Also Listed In: devel
License: GPLv2
WWW:
https://openjdk.java.net/projects/jdk/24/
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/openjdk24-24.0.2+12.2_3/catalog.mk
  2. /usr/local/share/licenses/openjdk24-24.0.2+12.2_3/LICENSE
  3. /usr/local/share/licenses/openjdk24-24.0.2+12.2_3/GPLv2
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • openjdk24>0:java/openjdk24
To install the port:
cd /usr/ports/java/openjdk24/ && make install clean
To add the package, run one of these commands:
  • pkg install java/openjdk24
  • pkg install openjdk24
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: openjdk24
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 powerpc64 powerpc64le
distinfo:
TIMESTAMP = 1756894463 SHA256 (openjdk24-24.0.2+12.2_2.aarch64.tar.xz) = 2bb221632eb862579b2c29a397aba6af535ee3ce45194c2679eb38a071b1c0fb SIZE (openjdk24-24.0.2+12.2_2.aarch64.tar.xz) = 188436848

Expand this list (8 items)

Collapse this list.

SHA256 (openjdk24-24.0.2+12.2_2.ppc64.tar.xz) = 5ed73900d43f2a1143f064e7e05234bd0453c39e364df34d0f50c504e0c9f56e SIZE (openjdk24-24.0.2+12.2_2.ppc64.tar.xz) = 186222576 SHA256 (openjdk24-24.0.2+12.2_2.ppc64le.tar.xz) = a99f482d4831e187c1a9322aa5d06dc74fd1853d64df4a4edf1b59dbde9f9e69 SIZE (openjdk24-24.0.2+12.2_2.ppc64le.tar.xz) = 187669644 SHA256 (openjdk24-24.0.2+12.2_2.x86_64.tar.xz) = 726aa3242648bf52d10a5e86b69a763cb919772f3c62fe6c9755ac871bc8afd3 SIZE (openjdk24-24.0.2+12.2_2.x86_64.tar.xz) = 190267084 SHA256 (freebsd-openjdk-jdk-24.0.2+12-2-jdk-24.0.2-ga-freebsd-2_GH0.tar.gz) = 707a120215130b7d82a344f19ec801efaa70edaad38d6417fd1a47a6da58c395 SIZE (freebsd-openjdk-jdk-24.0.2+12-2-jdk-24.0.2-ga-freebsd-2_GH0.tar.gz) = 120881959

Collapse this list.


Packages (timestamps in pop-ups are UTC):
openjdk24
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest24.0.2+12.2_324.0.2+12.2_3---n/an/an/a
FreeBSD:13:quarterly24.0.2+12.2_224.0.2+12.2_2---n/an/an/a
FreeBSD:14:latest24.0.2+12.2_324.0.2+12.2_3------
FreeBSD:14:quarterly24.0.2+12.2_224.0.2+12.2_2------
FreeBSD:15:latest24.0.2+12.2_324.0.2+12.2_3n/a-n/an/a--
FreeBSD:15:quarterly24.0.2+12.2_224.0.2+12.2_2n/a-n/an/a--
FreeBSD:16:latest24.0.2+12.2_324.0.2+12.2_3n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cups.h : print/cups
  2. bash : shells/bash
  3. gsed : textproc/gsed
  4. zip : archivers/zip
  5. gmake>=4.4.1 : devel/gmake
  6. pkgconf>=1.3.0_1 : devel/pkgconf
  7. gcc14 : lang/gcc14
  8. as : devel/binutils
  9. autoconf>=2.72_1 : devel/autoconf
  10. automake>=1.18.1 : devel/automake
  11. x11.pc : x11/libX11
  12. xext.pc : x11/libXext
  13. xi.pc : x11/libXi
  14. xrandr.pc : x11/libXrandr
  15. xrender.pc : x11/libXrender
  16. xt.pc : x11-toolkits/libXt
  17. 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 Run
  1. security/autofirma

Configuration Options:
No options to configure
Options name:
java_openjdk24
USES:
autoreconf:build compiler:features cpe gmake iconv jpeg pkgconfig xorg
pkg-message:
For install:
This OpenJDK implementation may requires procfs(5) mounted on /proc. 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/freebsd/openjdk/tar.gz/jdk-24.0.2-ga-freebsd-2?dummy=/
Collapse this list.
Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING
  • 2026-02-26
    Affects: users of java/openjdk*
    Author: ronald@FreeBSD.org
    Reason: 
      Version JAVA_DEFAULT is updated from 8 to 21.
      No specific action should be needed, just a heads-up to test before
      deploying to production as this is quite a big step in versions.
    
    

Number of commits found: 12

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
24.0.2+12.2_3
23 Feb 2026 14:23:56
commit hash: 8de6fe603338d529fb9ef6c744a5a676370de59bcommit hash: 8de6fe603338d529fb9ef6c744a5a676370de59bcommit hash: 8de6fe603338d529fb9ef6c744a5a676370de59bcommit hash: 8de6fe603338d529fb9ef6c744a5a676370de59b files touched by this commit
Harald Eilertsen (haraldei) search for other commits by this committer
java/openjdk21-25: Bootstrap from prebuilt packages

Completes the transition to using prebuilt packages to bootstrap OpenJDK
ports.

PR:		289731
Reviewed by:	jrm, fuz (mentor)
Approved by:	fuz (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54731
24.0.2+12.2_3
03 Feb 2026 05:13:43
commit hash: 2adc4bef7df69089f28bd4525c58238aebc4a34dcommit hash: 2adc4bef7df69089f28bd4525c58238aebc4a34dcommit hash: 2adc4bef7df69089f28bd4525c58238aebc4a34dcommit hash: 2adc4bef7df69089f28bd4525c58238aebc4a34d files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
graphics/lcms2: Bump PORTREVISION of dependent ports for shlib change

PR:		292881
Reported by:	Petr Lampa <lampa@fit.vutbr.cz>
24.0.2+12.2_2
12 Dec 2025 12:00:52
commit hash: 6a245515c7c2048e25413bd31d15e06a96319c8fcommit hash: 6a245515c7c2048e25413bd31d15e06a96319c8fcommit hash: 6a245515c7c2048e25413bd31d15e06a96319c8fcommit hash: 6a245515c7c2048e25413bd31d15e06a96319c8f files touched by this commit
Harald Eilertsen (haraldei) search for other commits by this committer
java/openjdk*: Deprecate unmaintained versions

Mark OpenJDK versions no longer maintained by upstream as deprecated,
and for future removal. Keeping LTS versions, as well as the actively
maintained latest versions in the tree.

Reviewed by:	bofh (mentor), jrm
Approved by:	bofh (mentor)
MFH:		2025Q4
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54176
24.0.2+12.2_1
25 Sep 2025 13:32:44
commit hash: 8e3dc60231183008cea882574020f74163db9b58commit hash: 8e3dc60231183008cea882574020f74163db9b58commit hash: 8e3dc60231183008cea882574020f74163db9b58commit hash: 8e3dc60231183008cea882574020f74163db9b58 files touched by this commit
Joseph Mingrone (jrm) search for other commits by this committer
Author: Harald Eilertsen
java/openjdk24: FreeBSD updates and fixes

- Enable and fix demangling C++ symbols in the Servicability Agent for
  FreeBSD. This fixes several issues with backtraces and looking up
  symbols when debugging or inspecting programs running in the JVM.

- Fix a performance issue when looking up committed memory size and
  number of open file handles via the OperatingSystemMXBean interface.
  This affected some large ElasticSearch clusters, but potentially also
  other large high performance systems.

Reviewed by:	emaste, jrm
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D52354
24.0.2+12.1_1
23 Sep 2025 10:31:04
commit hash: 6732aab7d151c664fb0e1d54dc6d11310c27ec5bcommit hash: 6732aab7d151c664fb0e1d54dc6d11310c27ec5bcommit hash: 6732aab7d151c664fb0e1d54dc6d11310c27ec5bcommit hash: 6732aab7d151c664fb0e1d54dc6d11310c27ec5b files touched by this commit
Ronald Klop (ronald) search for other commits by this committer
java/openjdk24: pass MAKE_JOBS_NUMBER around

Be more verbose during the build to prevent output timeout.

For rationale of this change see the commits in java/openjdk17 of the
last two weeks.
24.0.2+12.1
17 Sep 2025 08:37:10
commit hash: 8921df9c20effb4b5c41c7aa38c64d270be03450commit hash: 8921df9c20effb4b5c41c7aa38c64d270be03450commit hash: 8921df9c20effb4b5c41c7aa38c64d270be03450commit hash: 8921df9c20effb4b5c41c7aa38c64d270be03450 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
java/openjdk24: set proper ABI on powerpc64

n file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/precompiled/precompiled.hpp:45:
In file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/nmt/memTracker.hpp:30:
In file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/nmt/memoryFileTracker.hpp:34:
In file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/runtime/os.inline.hpp:31:
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.inline.hpp:35:10:
error: no member named 'resolve_function_descriptor' in 'os::Bsd'; did you mean
simply 'resolve_function_descriptor'?
   35 |   return os::Bsd::resolve_function_descriptor(p);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          resolve_function_descriptor
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.inline.hpp:34:18:
note: 'resolve_function_descriptor' declared here
   34 | inline void* os::resolve_function_descriptor(void* p) {
      |                  ^
1 error generated.
24.0.2+12.1
18 Jul 2025 16:29:48
commit hash: 7aed795e864ced2f6dfee773d2371d01b23d5d4fcommit hash: 7aed795e864ced2f6dfee773d2371d01b23d5d4fcommit hash: 7aed795e864ced2f6dfee773d2371d01b23d5d4fcommit hash: 7aed795e864ced2f6dfee773d2371d01b23d5d4f files touched by this commit
Joseph Mingrone (jrm) search for other commits by this committer
Author: Harald Eilertsen
java/openjdk24: Update to version 24.0.2

Updates the OpenJDK to version 24.0.2, including several fixes for
FreeBSD backported from mainline.

Reviewed by:	jrm
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D51367
24.0.1+9.1_1
27 Jun 2025 15:14:08
commit hash: 3a407ba074c037ab429e357307016648b4d5ed33commit hash: 3a407ba074c037ab429e357307016648b4d5ed33commit hash: 3a407ba074c037ab429e357307016648b4d5ed33commit hash: 3a407ba074c037ab429e357307016648b4d5ed33 files touched by this commit
Baptiste Daroussin (bapt) search for other commits by this committer
openjdk: remove need for fdescfs(5) and probably procfs(5)

Implement getCommittedVirtualMemorySize() directly using sysctl
kern.proc.vmmap
Implement getOpenFileDescriptorCount() directly using sysctl
kern.proc.nfds

Note on openjdk17 use closefrom where possible (note this use case is
only in openjdk 17, 21, 23 and 24)

Remove the message about the use of fdescfs(5) as this is not needed
for sure, keep the information about procfs(5) as I have not analysed
enough the source code to make sure it is not used anywhere else, but
I don't think it is.
24.0.1+9.1
29 May 2025 16:51:09
commit hash: 5769468b4ba38b5d24dcba7aaa0b0131cc5d10d6commit hash: 5769468b4ba38b5d24dcba7aaa0b0131cc5d10d6commit hash: 5769468b4ba38b5d24dcba7aaa0b0131cc5d10d6commit hash: 5769468b4ba38b5d24dcba7aaa0b0131cc5d10d6 files touched by this commit
Ronald Klop (ronald) search for other commits by this committer
java/openjdk18-24: fix printf in configure output

Printf was confused because the argument was used as format string
and contained a %.
The issue is only cosmetical so not bumping port revision.

It is mentioned in the PR that an upstream fix is in openjdk25.

PR:	287053
Approved by:	java@
24.0.1+9.1
25 Apr 2025 15:26:59
commit hash: 5fc04e4b900f974d5d334b1165668bddc90a86f6commit hash: 5fc04e4b900f974d5d334b1165668bddc90a86f6commit hash: 5fc04e4b900f974d5d334b1165668bddc90a86f6commit hash: 5fc04e4b900f974d5d334b1165668bddc90a86f6 files touched by this commit
Joseph Mingrone (jrm) search for other commits by this committer
Author: Harald Eilertsen
java/openjdk24: Upgrade to version 24.0.1+9.1

Remove src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp patch; it was
upstreamed.

Reviewed by:	emaste, glewis, jrm
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D49996
24.0.0+36.1
29 Mar 2025 13:05:18
commit hash: 70fabb4029f84b6053c94dd109bf568e43143636commit hash: 70fabb4029f84b6053c94dd109bf568e43143636commit hash: 70fabb4029f84b6053c94dd109bf568e43143636commit hash: 70fabb4029f84b6053c94dd109bf568e43143636 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
java/openjdk24: fix build on powerpc64*

Same issue as previously openjdk22 and openjdk23.
24.0.0+36.1
28 Mar 2025 18:48:55
commit hash: a7a4c323f32094d0a34e202d51d55bb9deca8406commit hash: a7a4c323f32094d0a34e202d51d55bb9deca8406commit hash: a7a4c323f32094d0a34e202d51d55bb9deca8406commit hash: a7a4c323f32094d0a34e202d51d55bb9deca8406 files touched by this commit
Joseph Mingrone (jrm) search for other commits by this committer
Author: Harald Eilertsen
java/openjdk24: Add port

Release notes:		https://openjdk.org/projects/jdk/24/
Reviewed by:		emaste, glewis, jrm
Sponsored by:		The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D49354

Number of commits found: 12