Why can’t I open SQL Developer when I have Java 10 installed

javasqldeveloper

In my Mac terminal:

$ javac -version
javac 10.0.1

I open SQL Developer and get this dialog:

SQL Developer requires a minimum of Java 8. Java 8 can be downloaded
from: http://www.oracle.com/technetwork/java/javase/downloads/

The dialog image

How do I get SQL developer to work?

Best Answer

If you don't still want to keep java 10, the fix is easy

vi /Applications/SQLDeveloper.app/Contents/MacOS/sqldeveloper.sh

Change the second line:

From:

TMP_PATH=`/usr/libexec/java_home -F -v 9`

To

TMP_PATH=`/usr/libexec/java_home -F -v 10`