Java
-
Installation
-
Fedora 44 and onwards OpenJDK builds are removed in favor of Adoptium Temurin OpenJDKs, please follow following instructions to install Temurin OpenJDKs. Run these commands one after another.
-
sudo dnf install adoptium-temurin-java-repository -
sudo fedora-third-party enable - Install appropriate version using
sudo dnf install temurin-<version>-jdkreplace<version>with the required version. Example:sudo dnf install temurin-21-jdk - Once Temurin JDK is installed change default Java version of your system using following command and select Temurin JDK by typing appropriate number from JDK list and enter.
sudo alternatives --config java - Once you have set correct JDK, you can verify by running in the terminal
java --versionshould get similar ouput where it shows current JDK being used, it should be the Temurin one.openjdk 21.0.12 2026-07-21 LTS OpenJDK Runtime Environment Temurin-21.0.12+8 (build 21.0.12+8-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.12+8 (build 21.0.12+8-LTS, mixed mode, sharing)
-
-
Fedora 43 and below versions
- Open up a terminal and type in these commands:
sudo dnf install java-21-openjdk - This will install and setup the Java JDK for you.
- Remember! JDK versions will be named in the same format. So JDK 11 would be named as java-11-openjdk and so on. So if you want to install other versions of the JDK you follow the same format. Its easy, isn't it? :D
- Open up a terminal and type in these commands:
-
-
Running Jar files
To run .jar files, such as ModCheck or Ninjabrain Bot, you can use the following terminal command, replacing
<path/to/jarfile.jar>with the actual path to the .jar file:java -jar <path/to/jarfile.jar>
GraalVM
- GraalVM is a Java runtime which runs slower to start with, but greatly speeds up as time goes on. Using GraalVM is recommended for running Minecraft when using SeedQueue.
- To download it, look here. Make sure to select Java 21 along with
Linux x64for the platform. - After downloading it, extract it somewhere and select the
javabinary file in thebinfolder by right clicking your instance in Prism Launcher > Edit > Settings > Java > Java installation > Browse.
- To download it, look here. Make sure to select Java 21 along with