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
openjdk20 Java Development Kit 20
20.0.2+9.1_4 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 20.0.2+9.1_3Version of this port present on the latest quarterly branch.
Deprecated DEPRECATED: No longer supported by upstream
Expiration Date EXPIRATION DATE: 2026-03-12
Maintainer: java@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-10-01 18:45:09
Last Update: 2026-01-15 10:51:04
Commit Hash: 4121610
People watching this port, also watch:: openjdk18, openjdk17, openjdk19, linux-steam-utils, bootstrap-openjdk17
Also Listed In: devel
License: GPLv2
WWW:
https://openjdk.java.net/projects/jdk/20/
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/openjdk20-20.0.2+9.1_4/catalog.mk
  2. /usr/local/share/licenses/openjdk20-20.0.2+9.1_4/LICENSE
  3. /usr/local/share/licenses/openjdk20-20.0.2+9.1_4/GPLv2
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • openjdk20>0:java/openjdk20
To install the port:
cd /usr/ports/java/openjdk20/ && make install clean
To add the package, run one of these commands:
  • pkg install java/openjdk20
  • pkg install openjdk20
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: openjdk20
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 i386 powerpc64 powerpc64le
distinfo:
TIMESTAMP = 1766157633 SHA256 (openjdk20-20.0.2+9.1_3.aarch64.tar.xz) = 4f2cbd343d102ce64e074f6cdba2576314e4333034d73cde0fe862c60f116850 SIZE (openjdk20-20.0.2+9.1_3.aarch64.tar.xz) = 165170468

Expand this list (10 items)

Collapse this list.

SHA256 (openjdk20-20.0.2+9.1_3.ppc64.tar.xz) = d4bb08c5d5cd14fd46a5d008d0abc06fa81e197738fdf85da285e547bf3fff7d SIZE (openjdk20-20.0.2+9.1_3.ppc64.tar.xz) = 164279232 SHA256 (openjdk20-20.0.2+9.1_3.ppc64le.tar.xz) = fa1443a9a5b5c111ff6e47ae5cc310cde307b740ed84ee7dfcd3f5dfecb64e7c SIZE (openjdk20-20.0.2+9.1_3.ppc64le.tar.xz) = 165194700 SHA256 (openjdk20-20.0.2+9.1_3.x86.tar.xz) = e282998ba34489b30563d49d19dca155c8b982cb400af0eaa71f683cb4506faf SIZE (openjdk20-20.0.2+9.1_3.x86.tar.xz) = 161116020 SHA256 (openjdk20-20.0.2+9.1_3.x86_64.tar.xz) = a9f76e7f51497ea06ca83076c879d38c5586464be83bdac6585495b6ce0b5c9f SIZE (openjdk20-20.0.2+9.1_3.x86_64.tar.xz) = 167203788 SHA256 (battleblow-jdk20u-jdk-20.0.2+9-1_GH0.tar.gz) = 61b32462e53841dd8641e6b21de91bae9a141ed58a41972f6a6cfba45ac8c4a2 SIZE (battleblow-jdk20u-jdk-20.0.2+9-1_GH0.tar.gz) = 109736899

Collapse this list.


No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
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. java/openjdk21
  2. java/openjdk21-jre

Configuration Options:
No options to configure
Options name:
java_openjdk20
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/jdk20u/tar.gz/jdk-20.0.2+9-1?dummy=/
Collapse this list.

Number of commits found: 14

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
20.0.2+9.1_4
15 Jan 2026 10:51:04
commit hash: 4121610441a887d2c26bc5d5ae33772f1cc9b0c6commit hash: 4121610441a887d2c26bc5d5ae33772f1cc9b0c6commit hash: 4121610441a887d2c26bc5d5ae33772f1cc9b0c6commit hash: 4121610441a887d2c26bc5d5ae33772f1cc9b0c6 files touched by this commit
Harald Eilertsen (haraldei) search for other commits by this committer
java/openjdk8-20: Bootstrap from prebuilt packages

Use prebuilt known good packages (derived from the official pkgs)
instead of depending on the previous version of the OpenJDK.

This patch fixes bootstrapping for openjdk8-20 except 18 which is
expired, and 19 which has been dealt with before.

PR:		291872
Reviewed by:	fuz (mentor)
Approved by:	fuz (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54683
20.0.2+9.1_3
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
20.0.2+9.1_2
20 Sep 2025 21:07:46
commit hash: 253f4c2ac930a45d183bc5a0ca6c99c6a8e7e0efcommit hash: 253f4c2ac930a45d183bc5a0ca6c99c6a8e7e0efcommit hash: 253f4c2ac930a45d183bc5a0ca6c99c6a8e7e0efcommit hash: 253f4c2ac930a45d183bc5a0ca6c99c6a8e7e0ef files touched by this commit
Ronald Klop (ronald) search for other commits by this committer
java/openjdk20: pass MAKE_JOBS_NUMBER around
20.0.2+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.
20.0.2+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@
20.0.2+9.1
06 Jan 2025 14:16:58
commit hash: 2cf6bc1add649b35668b449ab35fb04ed0a6d263commit hash: 2cf6bc1add649b35668b449ab35fb04ed0a6d263commit hash: 2cf6bc1add649b35668b449ab35fb04ed0a6d263commit hash: 2cf6bc1add649b35668b449ab35fb04ed0a6d263 files touched by this commit
Xavier Beaudouin (kiwi) search for other commits by this committer
java/openjdk*: Update pkg-message information about fdescfs and procfs

OpenJDK installation inform that fdescfs(5) and procfs(5) should be
mounted when using OpenJDK.
After doing some test and some traces, it seems that this should be
no so usefull, some applications will require it, but most of java
applications doesn't seems to suffer to work or performance when
such pseudo FS is not mounted.

So this change request permit to let local administrator to decide if
it is really needed or not.

Sponsored by:	Entersekt (previously Modirum MDpay)
Sponsored by:	Klara Inc.
Approved by:	0mp (mentor)
PR:	283364
20.0.2+9.1
15 Sep 2024 11:36:13
commit hash: 3378cc494de65725a36e8ff5aaa205273521ba52commit hash: 3378cc494de65725a36e8ff5aaa205273521ba52commit hash: 3378cc494de65725a36e8ff5aaa205273521ba52commit hash: 3378cc494de65725a36e8ff5aaa205273521ba52 files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19
java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors

Generally disable warnings-as-errors for all openjdk ports, removing all
the conditionals we have now for particular architectures and/or
compilers. It does not make sense to have this on by default, unless you
are an upstream maintainer.

PR:		281188
Approved by:	maintainer timeout (2 weeks)
MFH:		2024Q3
20.0.2+9.1
01 Jul 2024 20:27:23
commit hash: 19d68720f1dac6176557ffa8d9c1684c4cf22608commit hash: 19d68720f1dac6176557ffa8d9c1684c4cf22608commit hash: 19d68720f1dac6176557ffa8d9c1684c4cf22608commit hash: 19d68720f1dac6176557ffa8d9c1684c4cf22608 files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: drop support for FreeBSD 13.2 which reached EOL today

Thanks again to jbeich for noticing various things I overlooked.

Reviewed by:	acm, ashish, eduardo, ehaupt, eugen, jbeich, martymac, mat,
nobukata, sunpoet, tagattie, yuri, arrowd, kde
Differential Revision:	https://reviews.freebsd.org/D45141
20.0.2+9.1
26 Jan 2024 22:23:12
commit hash: a1f91b22f1fc8ada691c47864c6365731cf8ef86commit hash: a1f91b22f1fc8ada691c47864c6365731cf8ef86commit hash: a1f91b22f1fc8ada691c47864c6365731cf8ef86commit hash: a1f91b22f1fc8ada691c47864c6365731cf8ef86 files touched by this commit
Michael Osipov (michaelo) search for other commits by this committer
Author: Dimitry Andric
java/openjdk{19,20,21}: fix build with lld 17

Building java/openjdk{19,20,21} with lld 17 results in the following link
errors:

  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ21WB_HandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ24WB_HandshakeReadMonitorsE19ReadMonitorsClosure' failed: symbol not
defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ26WB_AsyncHandshakeWalkStackE16TraceSelfClosure' failed: symbol not
defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZL20reinitialize_itablesvE18ReinitTableClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN12JvmtiEnvBase27check_for_periodic_clean_upEvE28ThreadInsideIterationClosure'
failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN15G1RemSetSummary6updateEvE11CollectData' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet22set_active_all_threadsEbbE22SetThreadActiveClosure'
failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet23abandon_partial_markingEvE25AbandonThreadQueueClosure'
failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN18G1ConcurrentRefine30get_and_reset_refinement_statsEvE12CollectStats'
failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet12abandon_logsEvE23AbandonThreadLogClosure' failed:
symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet16concatenate_logsEvE27ConcatenateThreadLogClosure'
failed: symbol not defined
(Only the first 15 lines of the commit message are shown above View all of this commit message)
20.0.2+9.1
05 Jan 2024 21:01:11
commit hash: 29d405be150a25892d8e37ec4713ec4f5b3fcd50commit hash: 29d405be150a25892d8e37ec4713ec4f5b3fcd50commit hash: 29d405be150a25892d8e37ec4713ec4f5b3fcd50commit hash: 29d405be150a25892d8e37ec4713ec4f5b3fcd50 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
java/openjdk20: drop ELFv1 support
20.0.2+9.1
31 Dec 2023 00:37:05
commit hash: bbab7f59e9630416397189df70ec133bdd690e38commit hash: bbab7f59e9630416397189df70ec133bdd690e38commit hash: bbab7f59e9630416397189df70ec133bdd690e38commit hash: bbab7f59e9630416397189df70ec133bdd690e38 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree

- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
20.0.2+9.1
16 Oct 2023 16:26:33
commit hash: 3c543e99fe67d53ddc41455c452d81d2b3e16cd0commit hash: 3c543e99fe67d53ddc41455c452d81d2b3e16cd0commit hash: 3c543e99fe67d53ddc41455c452d81d2b3e16cd0commit hash: 3c543e99fe67d53ddc41455c452d81d2b3e16cd0 files touched by this commit
Greg Lewis (glewis) search for other commits by this committer
java/openjdk20: Fix the build on aarch64

Remove a reference to an extra patch that no longer exists
20.0.2+9.1
02 Oct 2023 14:02:15
commit hash: 7bcfdc285927ebf11a47b0ba6e424548959ba6accommit hash: 7bcfdc285927ebf11a47b0ba6e424548959ba6accommit hash: 7bcfdc285927ebf11a47b0ba6e424548959ba6accommit hash: 7bcfdc285927ebf11a47b0ba6e424548959ba6ac files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
java/openjdk20: fix build on powerpc64
20.0.2+9.1
01 Oct 2023 18:42:49
commit hash: fc2dccc71c49204f761d3c5291c37b285b6ffa03commit hash: fc2dccc71c49204f761d3c5291c37b285b6ffa03commit hash: fc2dccc71c49204f761d3c5291c37b285b6ffa03commit hash: fc2dccc71c49204f761d3c5291c37b285b6ffa03 files touched by this commit
Greg Lewis (glewis) search for other commits by this committer
java/openjdk20: Add a port of JDK 20

Number of commits found: 14