赞
踩
1打开命令行首安装和更新brew 指令:
- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
- brew tap caskroom/versions
-
- brew update
2 从AdoptOpenJDK安装JDK
brew tap adoptopenjdk/openjdk
安装指令按版本选择指令
- brew cask install adoptopenjdk8
- brew cask install adoptopenjdk9
- brew cask install adoptopenjdk10
- brew cask install adoptopenjdk11
或者
brew cask install java8
命令行查看安装是否成功
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。