If you can't install java on Catalina

I can't install java on my mac ...

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 ... スクリーンショット 2019-12-15 12.47.08.png It seems that there are some people who have been getting such an error since the Mac OS became catalina.

solution

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)

important point

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

If you can't install java on Catalina
Install Java on Mac
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Java on WSL Ubuntu 18.04
Install Rails on macOS Catalina
Install java 1.8.0 on Amazon linux2
Using Java on OSX 10.15 (Catalina) β
Install Java with zip on Windows
Install Java Open JDK 8 on CentOS 7
Install Java 9 on windows 10 and CentOS 7
Install Java development environment on Mac
How to uninstall if you have updated to Java 9 on your Mac
If you can't hear sound from your Bluetooth headphones on Ubuntu 20.04
Install imagick on macOS Catalina + php 7.4 Note
Install OpenJDK (Java) on the latest Ubuntu
I can't install rails on my mac
Install Java8 with Yum on Amazon Linux
What to do if you install Ubuntu
Thoughts on Java Interviews you never Knew
What to do if you can't install the plugin from the Eclipse marketplace
Install java and android-sdk on Mac using homebrew
Be careful if you find SHIFT-JIS in Java
Install Java 11 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 14 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
What to do if you have installed Java for OS X on macOS
Install Java 8 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
Java development environment construction on Mac-JDK Install (2020 preservation version)
After all, if you learn first, I think Java
[Ruby] I can't install puma on Mac [Rails, etc.]
Install Java 8 (OpenJDK: Amazon Corretto) on macOS with Homebrew
Install java and maven using brew on new mac
Install Java 8 (OpenJDK: Zulu Community) on macOS with Homebrew
JAWJAW is convenient if you use WordNet from Java
Install java with Homebrew
Install gradle on mac
Let's touch on Java
Install Corretto 8 on Windows
Install OpenJDK on macOS
Beginners write! Until you install postgreSQL on macOS catalina and make it available in rails 6.0.3.2
Install Java with Ansible
[Java] Install Amazon Corretto 8
Install Golang on CentOS 8
Install pyqt5 on ubuntu
Install Neo4j 4.1.3 on centOS
What to do if you enable UFW on Ubuntu VM on GCP and you can't connect to SSH
Run PostgreSQL on Java
Install Docker on Manjaro
Install Vertica 10.0 on CentOS 6.10
Install Ruby on Ubuntu 20.04
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install lombok on SpringToolSuite4
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Autoware on Ubuntu 18.04.5
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install openjdk11 on mac