Skip to content

leejoker/jpvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Platform Version Manager

专为中国 Javaer 开发的 Java 平台开发环境初始化工具,用来方便的管理、安装 JDK 以及相关 JVM 平台组件

使用国内源,确保安装速度

1.0.0 功能

  • 安装JDK
  • 查看发行版信息
  • 查看所有发行版和版本
  • 清理缓存
  • 设置使用的版本
  • 移除指定版本

构建方法

安装 nim

# 使用choosenim 进行安装
curl https://nim-lang.org/choosenim/init.sh -sSf | sh

构建

git clone https://gitee.com/monkeyNaive/jpvm.git
cd jpvm
nimble build -d:ssl -d:release

使用方法

安装JDK

./jpvm install openjdk 17

查看帮助信息

./jpvm

Usage: jpvm [install|distro...] [--local] [distro] [version]

install [distro] [version]    不指定distro或者version的话默认安装OpenJDK最新的LTS版本, 例如: jpvm install openjdk 20
clean                         清理缓存目录
distro                        查看支持的发行版
list [--local]                查看所有发行版,增加 --local 参数后,查看已安装的发行版
use {distro} {version}        使用指定版本, 例如: jpvm use openjdk 17
current                       获取当前使用的JDK版本
remove [distro] [version]     移除指定版本

鸣谢

感谢 JDK 分发支持: Java I tell you

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages