
Minecraft java installer (linux)
♾️universal
Minecraft java installer (linux)
This script provides an automated installation process for multiple Java versions on Debian-based Linux systems, optimized for running Minecraft servers.
Features
- Interactive selection of Java versions to install
- Supports Java 8 (manual install), Java 11, 17, 19, and default-jdk from APT
- Auto-detection of missing packages (
curl,sudo,tar) and guided installation - Optional logging of all output to a log file
- Displays currently installed Java versions
- Guides the user through setting default
javaandjavacversions
Supported Java Versions
| Option | Java Version | Minecraft Version Range |
|---|---|---|
| 1 | Java 8 | Minecraft 1.8 – 1.16.x |
| 2 | Java 11 | Minecraft 1.17 – 1.18.x |
| 3 | Java 17 | Minecraft 1.18.2 – 1.20.4 |
| 4 | Java 19 | Experimental / Snapshots |
| 5 | Default JDK | Future Versions (1.21+) |
Requirements
- Debian/Ubuntu-based system
- Shell access with
sudoprivileges - Internet access
How to Use
- Download the script:
install_mc_java.sh - Make it executable:
chmod +x install_mc_java.sh - Run the script:
./install_mc_java.sh - Follow the on-screen prompts to select and install Java versions.
Optional Logging
To log all output to install_java.log, run:
./install_mc_java.sh --log
License
- You can find the license here