Issue
I'd like to setup java on a new OS X machine, and prefer to use brew for OS X package management. How can I install latest java using brew?
Solution
Turns out java has been moved into brew core recently, so the correct command as of January 2021 is:
brew install java
Don't be like me and follow old instructions to install from cask, it will not work. You will get an error message from brew like this:
% brew install --cask java
Error: Cask 'java' is unavailable: No Cask with this name exists.
You may also see this:
% brew cask install java
Error: Calling brew cask install is disabled! Use brew install [--cask] instead.
Answered By - Tim Fulmer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.