Settings

Theme

Show HN: Jv – A fast CLI tool to switch Java versions on Windows

github.com

3 points by costabrosky 8 months ago · 0 comments · 1 min read

Reader

I've built jv (https://github.com/CostaBrosky/jv ), a simple and fast command-line tool designed specifically to switch Java versions on Windows with a single command.

Unlike manually editing environment variables or relying on complex batch scripts, jv provides a streamlined experience. It permanently modifies JAVA_HOME and PATH system-wide (requiring admin privileges for these commands), ensuring the change is picked up by all applications, including IDEs.

Key features include:

    Beautiful Interactive UI: Navigate and select versions using arrow keys.
    One-Command Switching: jv use 17 or jv switch for interactive mode.
    Auto-Detection: Finds existing Java installations (Oracle, Adoptium, Zulu, etc.).
    Integrated Installer: Easily install new Java versions (currently Adoptium) via jv install.
    Diagnostics & Repair: jv doctor and jv repair help manage your environment.
    Shell Autocomplete: Tab completion for PowerShell.
    Zero Dependencies: Standalone Go executable.
     
While tools like sdkman exist for Unix-like systems, there wasn't a similarly focused and user-friendly solution for Windows. jv aims to fill that gap.

Feedback and contributions are welcome!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection