A lightweight Python tool to manage Java installations, because SDKMAN doesn't exist on Windows.
- Detects and sets multiple Java vendors (Oracle, Adoptium, Zulu)
- Updates
JAVA_HOMEautomatically - Cleans old Java entries from system and user PATHs.
- No additional packages needed
- Windows
- Python 3.x
- Administrator privileges to update system variables
- Clone the repository:
git clone https://github.com/Meolsei/Java-Runtime-Manager.git cd Java-Runtime-Manager - Run the script as an administrator:
python main.py
- Follow the prompts:
Input Java Version: (8, 11, 17, 21, 25) Input Java Vendor: (Adoptium, Oracle, Zulu)
The script will update JAVA_HOME and PATH automatically.
- For PowerShell:
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") java -version
- For Command Prompt:
set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem java -version
- This script only works on Windows. Unix users can use SDKMAN:
curl -s "https://get.sdkman.io" | bash
- No 3rd party packages needed
- Feel free to submit bug reports or feature requests
- PRs are welcome
This project is licensed under the MIT License, which permits you to freely use or modify it, granted the notice is included in any copy made.