Unable to install java8 with homebrew

前端 未结 6 1722
醉话见心
醉话见心 2020-12-14 06:15

Installing java8 with Homebrew seems to no longer be working. After running:

brew install caskroom/cask/java8

I get the follow

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 06:45

    The command is

     brew cask install adoptopenjdk8-openj9
    

    Fixed my problem and I can run my project in java8

    java -version

    openjdk version "1.8.0_222

    OpenJDK Runtime Environment (build 1.8.0_222-b10)

    Eclipse OpenJ9 VM (build openj9-0.15.1, JRE 1.8.0 Mac OS X amd64-64-Bit Compressed References 20190717_298 (JIT enabled, AOT enabled)

    OpenJ9 - 0f66c6431

    OMR - ec782f26

    JCL - f147086df1 based on jdk8u222-b10)

提交回复
热议问题