Open System Preferences -> Security & Privacy -> General , there should be a message about the JDK app , click Allow . Run the Java-based app again (e.g.: type java -version in the Terminal app).
Read moreDoes macOS support Java?
Mac OS X Version 10.7. Java 7 and later versions can run on your Mac . Oracle Java (Version 7 and later versions) requires an Intel-based Mac running Mac OS X 10.7. 3 (Lion) or later and administrator privileges for installation.
Read moreHow do I update Java on my Mac Catalina?
Update Java in the Java Control Panel
Read moreDo I need Java on my Mac Catalina?
You need an Oracle JDK . Oracle has revamped it’s Java model and now sells the software. They now have an “OpenJDK” free version for end users. If you have an app that tries to use Java, it may be poorly written such that it will only attempt to use Apple’s Java 6 which will not run on Catalina.1 Nis 2020
Read more