alyssadev / java-preloader-reloadeder

A JDK version manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-preloader-reloadeder

Crates.io

Replacement for my old gist.

Downloads JDKs from AdoptOpenJDK into <cache dir>/jpre/jdks, then sets a symlink to the currently active JDK. The symlinks are per-TTY (which usually implies per-shell), and stored in the Rust-std-determined temporary folder, which is usually $TMPDIR or /tmp.

Installation

Run cargo install jpre to get the jpre binary, and set your JAVA_HOME to $(jpre java-home). For most people adding this is enough:

export JAVA_HOME="$(jpre java-home)"

This path will be symlinked to the currently selected JDK.

About

A JDK version manager

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%