1 Star 1 Fork 0

leejoker / jpvm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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

MIT License Copyright (c) 2023 leejoker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Java Platform Version Manager 专为中国 Javaer 开发的 Java 平台开发环境初始化工具,用来方便的管理、安装 JDK 以及相关 JVM 平台组件 使用国内源,确保安装速度 当前施工中..... 展开 收起
Nim
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/monkeyNaive/jpvm.git
git@gitee.com:monkeyNaive/jpvm.git
monkeyNaive
jpvm
jpvm
master

搜索帮助