I'm trying to install java11 on Mac with
brew cask install java11
and I got an error:
Error: Cask java11 exists in multiple taps:
homebrew/cask-versions/java11
caskroom/versions/java11
Can you please help to fix this error?
The following commands resolve the issue with conflicting casks and then install java11:
brew untap homebrew/cask-versions
brew untap caskroom/versions
brew tap homebrew/cask-versions
brew cask install java11
This worked for me:
brew install java11
I also had to do this command so that it was in my path:
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With