Skip to content

Installation

Prebuilt releases are available for Windows, macOS, and Linux on amd64 and arm64.

Terminal window
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | sh

The installer detects the platform, verifies the release checksum, installs jup under ~/.javaup/bin, and updates the relevant shell profile.

Run in PowerShell 5.1 or later:

Terminal window
irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iex

The installer verifies the release checksum, installs jup.exe under %USERPROFILE%\.javaup\bin, and adds that directory to the user PATH. Restart terminals and IDEs that were open during installation so they inherit the new PATH.

Install with the Go version declared in go.mod, or newer:

Terminal window
go install github.com/codeboyzhou/javaup/cmd/jup@latest

Or build from source:

Terminal window
git clone https://github.com/codeboyzhou/javaup.git
cd javaup
go run build.go

The binary is written to dist/jup.exe on Windows or dist/jup on macOS and Linux. Archives, checksums, and installers can also be inspected on GitHub Releases.

VariablePurpose
JAVAUP_VERSIONInstall a specific release, such as v0.3.0
JAVAUP_HOMEUse a custom absolute installation and configuration directory
JAVAUP_NO_MODIFY_PATHInstall without updating the shell profile or user PATH

Set JAVAUP_VERSION to install a specific release instead of the latest one:

Terminal window
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | JAVAUP_VERSION=v0.3.0 sh
Terminal window
$env:JAVAUP_VERSION = 'v0.3.0'
irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iex

Set JAVAUP_HOME to an absolute path to keep the installation and configuration elsewhere (for example /opt/javaup or D:\javaup):

Terminal window
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | JAVAUP_HOME=/opt/javaup sh
Terminal window
$env:JAVAUP_HOME = 'D:\javaup'
irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iex

Set JAVAUP_NO_MODIFY_PATH to install without editing the shell profile or user PATH. Add the bin directory to PATH yourself afterwards:

Terminal window
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | JAVAUP_NO_MODIFY_PATH=1 sh
Terminal window
$env:JAVAUP_NO_MODIFY_PATH = '1'
irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iex

Verify the result:

Terminal window
jup version