Skip to content

Setting Up OpenJDK

Endi S. Dewata edited this page Oct 31, 2022 · 2 revisions

Installation

To install OpenJDK 17 JRE:

$ dnf install java-17-openjdk

To install OpenJDK 17 JDK:

$ dnf install java-17-openjdk-devel

Switching Java Version

To switch JRE version:

$ alternatives --config java

To switch JDK version:

$ alternatives --config javac

See Also

Clone this wiki locally