Installation
Prebuilt releases are available for Windows, macOS, and Linux on amd64 and arm64.
macOS or Linux
Section titled “macOS or Linux”curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | shThe installer detects the platform, verifies the release checksum, installs
jup under ~/.javaup/bin, and updates the relevant shell profile.
Windows
Section titled “Windows”Run in PowerShell 5.1 or later:
irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iexThe 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.
Other Installation Methods
Section titled “Other Installation Methods”Install with the Go version declared in go.mod, or newer:
go install github.com/codeboyzhou/javaup/cmd/jup@latestOr build from source:
git clone https://github.com/codeboyzhou/javaup.gitcd javaupgo run build.goThe 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.
Installer Options
Section titled “Installer Options”| Variable | Purpose |
|---|---|
JAVAUP_VERSION | Install a specific release, such as v0.3.0 |
JAVAUP_HOME | Use a custom absolute installation and configuration directory |
JAVAUP_NO_MODIFY_PATH | Install without updating the shell profile or user PATH |
Pin a version
Section titled “Pin a version”Set JAVAUP_VERSION to install a specific release instead of the latest one:
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | JAVAUP_VERSION=v0.3.0 sh$env:JAVAUP_VERSION = 'v0.3.0'irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iexInstall into a custom directory
Section titled “Install into a custom directory”Set JAVAUP_HOME to an absolute path to keep the installation and configuration
elsewhere (for example /opt/javaup or D:\javaup):
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | JAVAUP_HOME=/opt/javaup sh$env:JAVAUP_HOME = 'D:\javaup'irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iexSkip PATH changes
Section titled “Skip PATH changes”Set JAVAUP_NO_MODIFY_PATH to install without editing the shell profile or user
PATH. Add the bin directory to PATH yourself afterwards:
curl -fsSL https://github.com/codeboyzhou/javaup/releases/latest/download/install.sh | JAVAUP_NO_MODIFY_PATH=1 sh$env:JAVAUP_NO_MODIFY_PATH = '1'irm https://github.com/codeboyzhou/javaup/releases/latest/download/install.ps1 | iexVerify the result:
jup version