Minecraft java installer (linux)

Minecraft java installer (linux)

Wiki
Featured
Aktiv
♾️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 java and javac versions

Supported Java Versions

OptionJava VersionMinecraft Version Range
1Java 8Minecraft 1.8 – 1.16.x
2Java 11Minecraft 1.17 – 1.18.x
3Java 17Minecraft 1.18.2 – 1.20.4
4Java 19Experimental / Snapshots
5Default JDKFuture Versions (1.21+)

Requirements

  • Debian/Ubuntu-based system
  • Shell access with sudo privileges
  • Internet access

How to Use

  1. Download the script: install_mc_java.sh
  2. Make it executable:
    chmod +x install_mc_java.sh
    
  3. Run the script:
    ./install_mc_java.sh
    
  4. 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

Releases

1.0 (stable)