更新时间:2023-01-14 21:36:08
较早的Oracle JDK现在已从Homebrew中删除.改用OpenJDK:
The older Oracle JDKs are gone from Homebrew now. Use OpenJDK instead:
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
在大多数地方,OpenJDK都是Oracle JDK的直接替代,因此,无需任何代码或构建流程更改,它就可以很好地工作.
OpenJDK is a drop-in replacement for the Oracle JDK in most places, so this should work fine for you with no code or build process changes.