I bought a new mac, so I had a problem when I tried to install java anew. The OS of Mac is Catalina (10.15.1).
brew cask install java
When I run this script and try to check the version, I get an unexpected error ... It seems that there are some people who have been getting such an error since the Mac OS became catalina.
The solution was to install it using the official oracle installer. You can solve this problem by using the installer ( extension dmg </ b>) at oracle official. .. I was able to confirm the version.
$ java -version
java version "13.0.1" 2019-10-15
Java(TM) SE Runtime Environment (build 13.0.1+9)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)
There are two installers for mac from the oracle official, but if you use the one with the extension tar.gz, you may get the same error. I got an error in my environment.
Recommended Posts