How to install openjdk with brew? [closed]

旧城冷巷雨未停 提交于 2020-12-13 03:35:28

问题


Seems like there's 3 packages "openjdk", "cask java" and "adoptopenjdk".

Which one should be used?


回答1:


You can use brew install openjdk@11




回答2:


You can use AdoptOpenJDK for brew




回答3:


To install latest:

brew cask install adoptopenjdk

To install a specific version

brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
brew cask install adoptopenjdk9


来源:https://stackoverflow.com/questions/63309614/how-to-install-openjdk-with-brew

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!