PitchHut logo
Java Version Switcher (jv)
Effortlessly switch Java versions on Windows with a fast CLI.
Pitch

Java Version Switcher (jv) simplifies the management of Java installations on Windows by providing a fast command-line interface. It detects installed JDKs, allows interactive version selection, and updates your JAVA_HOME and PATH automatically, ensuring a smooth development experience.

Description

Java Version Switcher (jv)

jv is a fast command-line interface (CLI) designed specifically for switching between Java versions on Windows. This tool automatically detects installed JDKs, allowing users to choose one interactively, and it updates the JAVA_HOME and PATH environment variables accordingly.

Features

  • Interactive Terminal User Interface (TUI): Utilizes the Charm toolkit for a user-friendly experience, including prompts and styled outputs.
  • Auto-Detection: Quickly identifies all installed Java versions on the system.
  • Custom Configurations: Supports the creation of persistent custom and search paths for Java installations.
  • Simple Commands: Execute commands to list available versions, switch between them, and perform installation or diagnostics effortlessly.

Quick Usage Example

To get started with jv, here are a few commands:

jv list          # List all detected Java versions
jv switch        # Start the interactive version switcher
jv use 17       # Directly switch to Java version 17
jv current       # Display the current JAVA_HOME and version
jv install       # Install a new version of Java interactively
jv doctor        # Run diagnostics for Java setup
jv repair        # Fix any configuration issues

Additional Information

  • Administrator Privileges: Some commands may require administrative access to modify system-wide environment variables. However, the installer script only configures user-level settings and does not require admin rights.
  • Compatibility: The tool is designed for Windows 10 and 11, and is built to work with PowerShell. A minimum Go version of 1.21 is required for building from source.

For more detailed information, including installation and uninstallation steps, as well as troubleshooting tips, please consult the README in the repository.

0 comments

No comments yet.

Sign in to be the first to comment.