Tired of manually editing JAVA_HOME and your PATH? This project provides simple, powerful command-line tools to discover and switch between multiple Java JDK versions on your system.
This repository contains scripts for different operating systems. Please navigate to the folder for your OS to get started.
-
- A powerful, interactive PowerShell script for managing your JDK environment. It features automatic discovery and safe, system-wide environment variable updates.
-
- (Coming Soon!) A bash script to bring the same functionality to Linux distributions.
This project aims to provide a consistent experience across all platforms with these key features:
- Discover: Automatically find all JDK installations on your system.
- Select: Interactively choose which Java version you want to activate.
- Switch: Safely update your shell's environment variables to use the selected JDK.
-
Clone this repository:
git clone [https://github.com/your-username/JDK-Switcher.git](https://github.com/your-username/JDK-Switcher.git) cd JDK-Switcher -
Navigate to the folder for your operating system. For example, for Windows users:
cd windows
-
Follow the instructions in that folder's README file to set up and run the script.
Contributions are welcome! If you'd like to help build the script for a new operating system (like Linux or macOS), please feel free to open an issue or submit a pull request.