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 |
|---|---|---|---|
| 26_p35 | 8 | ~amd64 ~arm64 ~ppc64 ~riscv | $(ver_cut 1) |
<pkgmetadata> <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> <slot name="17">Java™ version 17</slot> <slot name="25">Java™ version 25</slot> <slot name="26">Java™ version 26</slot> </slots> <use> <flag name="headless-awt">Don't install the X backend for AWT, needed by some GUIs</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="system-bootstrap">Bootstrap using installed openjdk</flag> <flag name="systemtap" restrict=">=dev-java/openjdk-11">Enable SystemTap/DTrace tracing</flag> </use> <upstream> <remote-id type="github">openjdk/jdk8u</remote-id> <remote-id type="github">openjdk/jdk11u</remote-id> <remote-id type="github">openjdk/jdk17u</remote-id> <remote-id type="github">openjdk/jdk21u</remote-id> <remote-id type="github">openjdk/jdk25u</remote-id> <remote-id type="github">openjdk/jdk26u</remote-id> </upstream> </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 | 26_p35 |
|---|---|---|
| alsa | Enable alsa output for sound emulation ⚠️ | ✓ |
| big-endian | ⚠️ | ✓ |
| cups | ⚠️ | ✓ |
| debug | ⚠️ | ✓ |
| doc | ⚠️ | ✓ |
| examples | ⚠️ | ✓ |
| 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 | ⊕ |
| selinux | Enable SELinux policy support for enhanced security in SELinux-enabled systems. Required for proper operation on systems with SELinux in enforcing mode. ⚠️ | ✓ |
| source | Install JVM sources | ✓ |
| system-bootstrap | Bootstrap using installed openjdk | ⊕ |
| systemtap | Enable SystemTap/DTrace tracing | ✓ |
| Type | File | Size | Versions |
|---|---|---|---|
| DIST | openjdk-26_p35.tar.gz | 121597398 bytes | 26_p35 |
| Type | File | Size |
|---|---|---|
| DIST | openjdk-bootstrap-25_p36-ppc64.tar.xz | 140209032 bytes |