Oracle SQLDeveloper on MacOS won't open after installation of correct Java

后端 未结 11 1540
余生分开走
余生分开走 2021-02-07 00:07

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

11条回答
  •  深忆病人
    2021-02-07 00:23

    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:

    1. Delete all the code before export JAVA_HOME=$TMP_PATH
    2. Change export JAVA_HOME=$TMP_PATH to export JAVA_HOME=/jdk-11.jdk/Contents/Home
    3. Start SQLDeveloper

    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.

提交回复
热议问题