How to install Java 8 on osx macOS Mojave with Homebrew?

前端 未结 4 1864
傲寒
傲寒 2021-01-30 22:20

At the moment Java 8 is still required for some apps like:

  • Android SDK / Android Studio
  • Jenkins
  • Ionic ...

With brew install

4条回答
  •  野的像风
    2021-01-30 22:44

    The older Oracle JDKs are gone from Homebrew now. Use OpenJDK instead:

    brew tap adoptopenjdk/openjdk
    brew cask install adoptopenjdk8
    

    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.

提交回复
热议问题