Install this package:
emerge -a dev-java/openjdk
If the package is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask dev-java/openjdk
Or alternatively:
emerge --autounmask-write -a dev-java/openjdk
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9.0.4_p12 | 8 | amd64 arm64 | 9.0.4_p12 |
| 8.272_p10 | 8 | amd64 arm64 ppc64 x86 | 8.272_p10 |
| 25_p36 | 8 | amd64 arm64 ppc64 ~riscv | $(ver_cut 1) |
| 24.0.2_p12 | 8 | amd64 arm64 ppc64 ~riscv | $(ver_cut 1) |
| 23.0.2_p7 | 8 | amd64 arm64 ppc64 ~riscv | $(ver_cut 1) |
| 22.0.0_p36 | 8 | amd64 ~arm arm64 ~ppc64 ~riscv ~x86 | $(ver_cut |
| 21.0.0_p35 | 8 | amd64 ~arm arm64 ~ppc64 ~riscv ~x86 | $(ver_cut |
| 20.0.2_p09 | 8 | amd64 ~arm arm64 ~ppc64 ~riscv ~x86 | 20.0.2_p09-ga |
| 19.0.2_p07 | 8 | amd64 ~arm arm64 ~ppc64 ~riscv ~x86 | 19.0.2_p07-ga |
| 18.0.2_p05 | 8 | amd64 ~arm arm64 ~ppc64 ~riscv ~x86 | 18.0.2_p05-ga |
| 17.0.8.1_p1 | 8 | amd64 ~arm arm64 ppc64 ~riscv x86 | 17.0.8.1_p1-ga |
| 16.0.2_p07 | 8 | amd64 ~arm arm64 ~ppc64 | 16.0.2_p07-ga |
| 15.0.2_p07 | 8 | amd64 ~arm arm64 ~ppc64 | 15.0.2_p07-ga |
| 14.0.2_p01 | 8 | amd64 ~arm arm64 ~ppc64 | 14.0.2_p01-ga |
| 13.0.4_p01 | 8 | amd64 ~arm arm64 ~ppc64 | 13.0.4_p01-ga |
| 12.0.2_p01 | 8 | amd64 ~arm arm64 ~ppc64 | 12.0.2_p01-ga |
| 11.0.20.1_p1 | 8 | amd64 ~arm arm64 ppc64 ~riscv x86 | 11.0.20.1_p1-ga |
| 10.0.2_p13 | 8 | amd64 arm64 | 10.0.2_p13 |
<pkgmetadata> <maintainer type="person"> <email>gyakovlev@gentoo.org</email> <name>Georgy Yakovlev</name> </maintainer> <maintainer type="project"> <email>java@gentoo.org</email> <name>Java</name> </maintainer> <longdescription> Java™ is the world's leading programming language and platform. The code for Java is open source and available at OpenJDK™. </longdescription> <slots> <slot name="8">Java™ 8 is Java™ 1.8, where 8 is the version number, and 1.8 is the version string</slot> <slot name="11">Java™ version 11</slot> </slots> <use> <flag name="headless-awt">Don't install the X backend for AWT, needed by some GUIs</flag> <flag name="gentoo-vm">Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!)</flag> <flag name="javafx" restrict="<=dev-java/openjdk-9">Provide JavaFX support via <pkg>dev-java/openjfx</pkg></flag> <flag name="javafx" restrict=">=dev-java/openjdk-11">Import OpenJFX modules at build time, via <pkg>dev-java/openjfx</pkg></flag> <flag name="jbootstrap">Build OpenJDK twice, the second time using the result of the first</flag> <flag name="source">Install JVM sources</flag> <flag name="systemtap" restrict=">=dev-java/openjdk-11">Enable SystemTAP/DTrace tracing</flag> </use> </pkgmetadata>
Manage flags for this package:
euse -i <flag> -p dev-java/openjdk |
euse -E <flag> -p dev-java/openjdk |
euse -D <flag> -p dev-java/openjdk
| Flag | Description | 9.0.4_p12 | 8.272_p10 | 25_p36 | 24.0.2_p12 | 23.0.2_p7 | 22.0.0_p36 | 21.0.0_p35 | 20.0.2_p09 | 19.0.2_p07 | 18.0.2_p05 | 17.0.8.1_p1 | 16.0.2_p07 | 15.0.2_p07 | 14.0.2_p01 | 13.0.4_p01 | 12.0.2_p01 | 11.0.20.1_p1 | 10.0.2_p13 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| alsa | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| big-endian | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ |
| cups | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| debug | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| doc | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| examples | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gentoo-vm | Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!) | ⊕ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ⊕ |
| headless-awt | Don't install the X backend for AWT, needed by some GUIs | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| javafx | Provide JavaFX support via <pkg>dev-java/openjfx</pkg> | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| jbootstrap | Build OpenJDK twice, the second time using the result of the first | ✗ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| lto | ⚠️ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ |
| pch | ⚠️ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
| selinux | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| source | Install JVM sources | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| system-bootstrap | ⚠️ | ✗ | ✗ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| systemtap | Enable SystemTAP/DTrace tracing | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Type | File | Size |
|---|---|---|
| AUX | bootcycle_jobs.patch | 1273 bytes |
| AUX | musl/10/aarch64.patch | 278 bytes |
| AUX | musl/10/build.patch | 19515 bytes |
| AUX | musl/10/fix-bootjdk-check.patch | 25760 bytes |
| AUX | musl/10/ppc64le.patch | 6466 bytes |
| AUX | musl/11/aarch64.patch | 462 bytes |
| AUX | musl/11/build.patch | 19836 bytes |
| AUX | musl/11/fix-bootjdk-check.patch | 847 bytes |
| AUX | musl/11/ppc64le.patch | 8951 bytes |
| AUX | musl/12/aarch64.patch | 279 bytes |
| AUX | musl/12/build.patch | 18767 bytes |
| AUX | musl/12/fix-bootjdk-check.patch | 953 bytes |
| AUX | musl/12/ppc64le.patch | 7546 bytes |
| AUX | musl/13/aarch64.patch | 344 bytes |
| AUX | musl/13/build.patch | 18898 bytes |
| AUX | musl/13/fix-bootjdk-check.patch | 974 bytes |
| AUX | musl/13/ppc64le.patch | 8896 bytes |
| AUX | musl/14/aarch64.patch | 338 bytes |
| AUX | musl/14/build.patch | 18470 bytes |
| AUX | musl/14/fix-bootjdk-check.patch | 974 bytes |
| AUX | musl/14/ppc64le.patch | 8830 bytes |
| AUX | musl/15/aarch64.patch | 337 bytes |
| AUX | musl/15/build.patch | 18573 bytes |
| AUX | musl/15/ppc64le.patch | 8857 bytes |
| AUX | musl/7/cpio.patch | 696 bytes |
| AUX | musl/7/hotspot-musl-ppc.patch | 6596 bytes |
| AUX | musl/7/hotspot-musl.patch | 2764 bytes |
| AUX | musl/7/hotspot-noagent-musl.patch | 2498 bytes |
| AUX | musl/7/hotspot-uclibc-fixes.patch | 3367 bytes |
| AUX | musl/7/jdk-execinfo.patch | 1502 bytes |
| AUX | musl/7/jdk-fix-build.patch | 1851 bytes |
| AUX | musl/7/jdk-fix-ipv6-init.patch | 1574 bytes |
| AUX | musl/7/jdk-musl.patch | 5217 bytes |
| AUX | musl/7/jdk-no-soname.patch | 571 bytes |
| AUX | musl/8/0001_musl_hotspot.patch | 5209 bytes |
| AUX | musl/8/0002_musl_hotspot_ppc.patch | 1198 bytes |
| AUX | musl/8/0003_musl_hotspot_aarch64.patch | 581 bytes |
| AUX | musl/8/0004_musl_hotspot_noagent.patch | 3541 bytes |
| AUX | musl/8/0005_musl_fix_libjvm_load.patch | 556 bytes |
| AUX | musl/8/0006_musl_jdk.patch | 3750 bytes |
| AUX | musl/8/0007_musl_jdk_includes.patch | 6391 bytes |
| AUX | musl/8/0008_musl_jdk_execinfo.patch | 733 bytes |
| AUX | musl/8/0009_fix_jdk_ipv6_init.patch | 1585 bytes |
| AUX | musl/8/0010_fix_jdk_close_fds.patch | 3026 bytes |
| AUX | musl/9/aarch64.patch | 285 bytes |
| AUX | musl/9/build.patch | 19356 bytes |
| AUX | musl/9/fix-bootjdk-check.patch | 801 bytes |
| AUX | musl/9/ppc64le.patch | 5969 bytes |
| AUX | openjdk-10.env.sh | 537 bytes |
| AUX | openjdk-11.env.sh | 537 bytes |
| AUX | openjdk-12.env.sh | 537 bytes |
| AUX | openjdk-13.env.sh | 537 bytes |
| AUX | openjdk-14.env.sh | 537 bytes |
| AUX | openjdk-15.env.sh | 537 bytes |
| AUX | openjdk-16.env.sh | 537 bytes |
| AUX | openjdk-17.env.sh | 537 bytes |
| AUX | openjdk-7.env.sh | 746 bytes |
| AUX | openjdk-8.env.sh | 746 bytes |
| AUX | openjdk-9.env.sh | 537 bytes |
| AUX | openjdk.env.sh | 537 bytes |
| AUX | patches/10/aarch64_gcc_fix.patch | 371 bytes |
| AUX | patches/10/jdk-currency-timebomb.patch | 459 bytes |
| AUX | patches/10/make-4.3.patch | 741 bytes |
| AUX | patches/10/pointer-comparison.patch | 471 bytes |
| AUX | patches/12/aarch64_gcc_fix.patch | 371 bytes |
| AUX | patches/12/gcc-10.patch | 5469 bytes |
| AUX | patches/12/make-4.3.patch | 740 bytes |
| AUX | patches/16/1001_ppc64le.patch | 9158 bytes |
| AUX | patches/17/1001_ppc64le.patch | 9158 bytes |
| AUX | patches/23/libfontmanager-build.patch | 351 bytes |
| AUX | patches/8/openjdk-8-insantiate-arrayallocator.patch | 647 bytes |
| AUX | patches/8/openjdk-8-jdk-revert-improve-stub-classes.patch | 1416 bytes |
| AUX | patches/9/aarch64_gcc_fix.patch | 377 bytes |
| AUX | patches/9/fix-no-such-field-ipv6-error.patch | 309 bytes |
| AUX | patches/9/jdk-currency-timebomb.patch | 467 bytes |
| AUX | patches/9/make-4.3.patch | 740 bytes |
| AUX | patches/9/pointer-comparison.patch | 1162 bytes |
| DIST | openjdk-bootstrap-25_p36-ppc64.tar.xz | 140209032 bytes |
| EBUILD | openjdk-10.0.2_p13.ebuild | 8773 bytes |
| EBUILD | openjdk-11.0.20.1_p1.ebuild | 7494 bytes |
| EBUILD | openjdk-12.0.2_p01.ebuild | 7900 bytes |
| EBUILD | openjdk-13.0.4_p01.ebuild | 7744 bytes |
| EBUILD | openjdk-14.0.2_p01.ebuild | 7744 bytes |
| EBUILD | openjdk-15.0.2_p07.ebuild | 7550 bytes |
| EBUILD | openjdk-16.0.2_p07.ebuild | 6996 bytes |
| EBUILD | openjdk-17.0.8.1_p1.ebuild | 7969 bytes |
| EBUILD | openjdk-18.0.2_p05.ebuild | 8336 bytes |
| EBUILD | openjdk-19.0.2_p07.ebuild | 8336 bytes |
| EBUILD | openjdk-20.0.2_p09.ebuild | 8336 bytes |
| EBUILD | openjdk-21.0.0_p35.ebuild | 8085 bytes |
| EBUILD | openjdk-22.0.0_p36.ebuild | 8085 bytes |
| EBUILD | openjdk-23.0.2_p7.ebuild | 10445 bytes |
| EBUILD | openjdk-24.0.2_p12.ebuild | 10449 bytes |
| EBUILD | openjdk-25_p36.ebuild | 10449 bytes |
| EBUILD | openjdk-8.272_p10.ebuild | 7667 bytes |
| EBUILD | openjdk-9.0.4_p12.ebuild | 8418 bytes |
| MISC | metadata.xml | 1432 bytes |