Home > Net >  Why brew installion failed?
Why brew installion failed?

Time:03-02

I installed java11 using Home Brew but that failed. So some help needed to get Java works!

Thanks for advance!

admin@mac ~ % brew install java11
Warning: openjdk@11 11.0.12 is already installed and up-to-date.
To reinstall 11.0.12, run:  
brew reinstall openjdk@11

Then brew reinstall java11

 admin@mac  ~ % brew reinstall java11
    ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/11/manifests/11.0.12
    Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/45acc78f00cc0cf39a75f562f544fd9b61dc415df386dd1cb9b886c1f553252d--openjdk@11-11.0.12.bottle_manifest.json
    ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/11/blobs/sha256:dbf0b347060474c1aa0fbe3e58e33f4d81337e6f49209761da130ee776d66355
    Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/f08afa8f068cb282e649564e38b9fbe4aafc8e7f0d7b969fa17651c6df2f14e5--openjdk@11--11.0.12.arm64_big_sur.bottle.tar.gz
    ==> Reinstalling openjdk@11
    ==> Pouring [email protected]_big_sur.bottle.tar.gz
    ==> Caveats
    For the system Java wrappers to find this JDK, symlink it with
      sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
    
    openjdk@11 is keg-only, which means it was not symlinked into /opt/homebrew,
    because this is an alternate version of another formula.
    
    If you need to have openjdk@11 first in your PATH, run:
      echo 'export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"' >> ~/.zshrc
    
    For compilers to find openjdk@11 you may need to set:
      export CPPFLAGS="-I/opt/homebrew/opt/openjdk@11/include"
    
    ==> Summary
               
  • Related