| Crates.io | jvr |
| lib.rs | jvr |
| version | 0.1.1 |
| created_at | 2024-06-29 08:27:53.051862+00 |
| updated_at | 2024-06-29 08:37:20.77431+00 |
| description | 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 benamed 'jvm', which could cause command conflicts or ambiguity. |
| homepage | https://github.com/photowey/jvr |
| repository | https://github.com/photowey/jvr |
| max_upload_size | |
| id | 1287217 |
| size | 51,482 |
jvrA 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.
InstallDownload executable Download the executable file directly from GitHub and put it in any $PATH path.
Cargocargo install --git https://github.com/photowey/jvr.git [--branch main]
UsageCommandsAddRegister JDK
$ jvr add -h | --help
$ jvr add <NAME> <PATH>
# e.g.:
$ jvr add jdk8 ${YOUR_PATH}/jdk8
$ jvr add jdk11 ${YOUR_PATH}/jdk11
$ ...
ListList all registered JDKs, and use a clear table to list the registrations. The * indicates the version currently in use.
$ jvr list
UseSwitch the JDK version and automatically update the user's JAVA_HOME environment variable.
$ jvr use <NAME>
# e.g.:
$ jvr use jdk11
VersionView the version of jvr itself.
OpenOpen the directory where jvr HOME is located, if applicable.