【macOS】Homebrew安装JDK8

✨OpenJDK

AdoptOpenJDK

https://adoptopenjdk.net/

24th July 2021: AdoptOpenJDK is moving to the Eclipse Foundation and rebranding.
Our July 2021 and future releases will come from Adoptium.net


Adoptium

https://adoptium.net/temurin


✨Homebrew安装JDK8

默认情况下执行brew search temurin只能搜索到最新版

2022.6.19安装后发现是JDK18


brew tap homebrew/cask-versions
brew update

再次执行brew search temurin发现可以搜索到 termurin其他版本

brew install temurin8

✨查看当前系统所有Java环境

cd /Library/Java/JavaVirtualMachines
ls


在 IDEA 的 Project Structure 中自行选择项目所需JDK

✨参考及引用

https://stackoverflow.com/questions/24342886/how-to-install-java-8-on-mac


⭐转载请注明出处

本文作者:双份浓缩馥芮白

原文链接:https://www.cnblogs.com/Flat-White/p/16390559.html

版权所有,如需转载请注明出处。

posted @ 2022-06-19 15:23  双份浓缩馥芮白  阅读(3363)  评论(0编辑  收藏  举报