quick-docs/modules/ROOT/pages/_partials/proc_installing-openjdk.adoc
alciregi bf8758afdd Added Installing OpenJDK for development (how to install java-{1.8.0|11|latest}-openjdk-devel)
Modified dnf commands to include "sudo" instead of the "#" character in front of each command.

Minor aesthetic change (* instead of . for the lists).
2020-06-22 16:14:07 +00:00

42 lines
845 B
Text

[id='installing-openjdk']
= Installing OpenJDK
To install OpenJDK from the Fedora repository:
* Run the following command to list available versions:
----
dnf search openjdk
----
* Copy the version of OpenJDK you want to install.
[NOTE]
Various flavors of OpenJDK are available. For information about these options, search the link:http://openjdk.java.net/[OpenJDK web site].
* Run the following command to install OpenJDK:
----
sudo dnf install <openjdk-package-name>
----
For example:
----
sudo dnf install java-{1.8.0|11|latest}-openjdk.x86_64
----
== Installing OpenJDK for development
In order to install the Java Development Kit, runtime environment and associated development tools.
----
sudo dnf install <openjdk-package-name>-devel
----
For example:
----
sudo dnf install java-{1.8.0|11|latest}-openjdk-devel.x86_64
----