Selecting the right Java runtime for a Minecraft server is essential for supporting current game releases. Moving to an updated release also boosts server responsiveness and stability by improving memory efficiency and reducing background overhead. Aligning the Java installation with the specific environment of chosen plugins and modloaders prevents fatal startup errors.
Step 1. Log in to the MelonCube Games panel.
Step 2. Stop the server.
Step 3. Open the Minecraft Tools tab on the left and choose Modloader.
Step 4. Take note of the Minecraft version of the modloader. Custom modloaders will depend on the manually installed Minecraft version.
Step 5. Go to the Home tab on the left.
Step 6. From the Java Version dropdown, select the version that matches the modloader from Step 4.
| Minecraft Version | Java Version | Description |
|---|---|---|
| 26.1 and newer | Java 25+ |
Requires Java 25 or newer. Will not launch on Java 21 or earlier. |
| 1.20.5 - 1.21.x | Java 21 - 25 |
Vanilla works on Java 21 through 25. NeoForge & Fabric modpacks require Java 21. |
| 1.18 - 1.20.4 | Java 17 - 21 |
Vanilla & Paper work on Java 17 through 21. Forge modpacks require Java 17. |
| 1.17 - 1.17.1 | Java 16 - 17 | Runs on Java 16 or Java 17. |
| 1.12 - 1.16.5 | Java 8 - 11 |
Vanilla & Paper work on Java 8 through 11. Legacy Forge modpacks require Java 8. |
| 1.7.10 - 1.11.2 | Java 8 | Requires Java 8. |
| Classic - 1.6.4 | Java 6 - 8 |
Originally written for Java 6/7. Runs on Java 8. |
Step 7. Start the server.
Java Development Kits
- Adoptium - Adoptium delivers a stable environment optimized for modern hardware. Always install Adoptium first before trying other JDKs, as it guarantees compatibility with both vanilla and heavily modded Minecraft servers out of the box.
Note: Only try the following alternatives if familiar with Java Development Kits.
- GraalVM - GraalVM uses an advanced Just-In-Time (JIT) compiler that optimizes Java code, delivering faster chunk generation and higher Ticks Per Second (TPS). This architecture reduces garbage collection pauses and CPU overhead.
- Azul - Azul uses specialized technology to virtually eliminate lag spikes caused by background memory cleanups. Azul ensures the server maintains a consistently high framerate, especially for massive worlds with heavy automation.
- Corretto - Corretto provides an environment that offers some of the benefits of both Azul and GraalVM. It prioritizes stability and smooth performance under heavy system load.