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

R.L picture R.L · Jun 5, 2018 · Viewed 36.4k times · Source

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 10.0.1, but when I went back on to open SQL, it continued saying it required a minimum of Java 8.

I checked that the Java 10.0.1 had installed correctly, and I'm pretty sure it has. It shows up in System Preferences and when clicked, it opens the Java Control Panel fine.

I had also found someone recommending trying this command:

c:\Program Files\Oracle\sqlcl\17.3\sqlcl\bin>java -version

After trying this in the Terminal, I ended up with command not found.

I'm on a MacOS X El Captain 10.11.6.

Answer

Adam picture Adam · Nov 10, 2018

The post above is right: SQLDeveloper only runs under Java 8.

This is counter-intuitive as other programs runs under at least X version of a software (not only X version). I kept downloading Java 11 with no luck.

After 1 failed attempt a month ago and two hours of searching today, I found this easy fix worked for me.

Solution

  1. Delete the following Java files and folders on your mac.

    • /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
    • /Library/Java/JavaVirtualMachines/(delete current java folder)
  2. Download and install Java 8. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  3. Launch SQLDeveloper.