I downloaded the Oracle SQLDeveloper, but when I opened it, it said that it requires a minimum of Java 8 and gave me the website for the download. I went on and downloaded Java
Working solution for Mac running macOS Catalina 10.12.5 with openjdk 11 and SQLDeveloper 19.4.0.354:
Edit /Applications/SQLDeveloper.app/Contents/MacOS/sqldeveloper.sh
:
export JAVA_HOME=$TMP_PATH
export JAVA_HOME=$TMP_PATH
to export
JAVA_HOME=/jdk-11.jdk/Contents/Home
If macOS complains about the files being downloaded from the internet call xattr -d com.apple.quarantine
Incidentally I saw /Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/jdk.conf
has instructions for setting the java home by uncommenting and specifying SetJavaHome
but that didn't work for me.