System requirements
Before installing JavaOptionsCli, ensure your system meets the following requirements:- Debian-based Linux distribution (Ubuntu, Debian, Linux Mint, etc.)
- sudo privileges for installing Java versions and managing update-alternatives
- Go 1.25.5 or later (only if building from source)
JavaOptionsCli uses the
update-alternatives system to manage Java versions, which is standard on Debian-based distributions.Installation methods
Download or build the binary
Option 1: Download pre-built binary
Download the latest release from the GitHub releases page.Option 2: Build from source
Clone the repository and build the binary:JavaOptionsCli binary in the current directory.Make it globally available
You have two options to make JavaOptionsCli accessible from anywhere on your system:After this, you can run the tool from any directory:Reload your shell configuration:
Option 1: Move to /usr/bin (recommended)
Move the binary to a directory in your system PATH:Option 2: Create an alias
Alternatively, create an alias in your shell configuration file:~/.bashrc
If you use zsh, add the alias to
~/.zshrc instead of ~/.bashrc.Installation directory
JavaOptionsCli installs all Java versions to a standardized location:Dependencies
JavaOptionsCli uses the following Go libraries:- pterm - Interactive terminal UI components
- gookit/color - Terminal color output
- go-utils - Command execution utilities