jvr

Crates.iojvr
lib.rsjvr
version0.1.1
sourcesrc
created_at2024-06-29 08:27:53.051862
updated_at2024-06-29 08:37:20.77431
descriptionA simple and easy-to-use Java version manager(registry: jvr), similar to Node.js's nvm,but it does not follow nvm's naming convention. Otherwise, it would benamed 'jvm', which could cause command conflicts or ambiguity.
homepagehttps://github.com/photowey/jvr
repositoryhttps://github.com/photowey/jvr
max_upload_size
id1287217
size51,482
changjun (photowey)

documentation

https://docs.rs/jvr

README

jvr

A simple and easy-to-use Java version manager(registry: jvr), similar to Node.js's nvm, but it does not follow nvm's naming convention. Otherwise, it would be named jvm, which could cause command conflicts or ambiguity.

1.Install

1.1.Download executable

Download the executable file directly from GitHub and put it in any $PATH path.

1.2.Cargo

cargo install --git https://github.com/photowey/jvr.git [--branch main]

2.Usage

2.1.Commands

2.1.1Add

Register JDK

$ jvr add -h | --help
$ jvr add <NAME> <PATH>

# e.g.:
$ jvr add jdk8 ${YOUR_PATH}/jdk8
$ jvr add jdk11 ${YOUR_PATH}/jdk11
$ ...

2.1.2List

List all registered JDKs, and use a clear table to list the registrations. The * indicates the version currently in use.

$ jvr list

2.1.3Use

Switch the JDK version and automatically update the user's JAVA_HOME environment variable.

$ jvr use <NAME>

# e.g.:
$ jvr use jdk11

2.1.4Version

View the version of jvr itself.

2.1.5Open

Open the directory where jvr HOME is located, if applicable.

Commit count: 8

cargo fmt