English Chinese (Simplified)
Copy the version of OpenJDK you want to install.
dnf search openjdk
In order to install the Java Development Kit, runtime environment and associated development tools.
Installing OpenJDK
Installing OpenJDK for development
Run the following command to install OpenJDK:
Run the following command to list available versions:
sudo dnf install java-11-openjdk-devel.x86_64
sudo dnf install java-11-openjdk.x86_64
sudo dnf install java-1.8.0-openjdk-devel.x86_64
sudo dnf install java-1.8.0-openjdk.x86_64
sudo dnf install java-latest-openjdk-devel.x86_64
sudo dnf install java-latest-openjdk.x86_64
sudo dnf install <openjdk-package-name>
sudo dnf install <openjdk-package-name>-devel
To install OpenJDK from the Fedora repository:
Various flavors of OpenJDK are available. For information about these options, search the link:https://openjdk.java.net/[OpenJDK web site].