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

16,113

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`
Share:
16,113
Henry Yang
Author by

Henry Yang

Updated on September 18, 2022

Comments

  • Henry Yang
    Henry Yang almost 2 years

    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?

    • Ramhound
      Ramhound about 6 years
      Could be a simple system variable path issue.
    • Henry Yang
      Henry Yang about 6 years
      I download java sdk 8 at oracle.com/technetwork/java/javase/downloads/… and now sql developer works
    • Line
      Line almost 5 years
      maybe you had OpenJDK, while OracleJDK was required? (see this comment)
    • Henry Yang
      Henry Yang almost 5 years
      @Line Sorry my SQL developer works now and I don't remember what I did to fix it. I should have posted my solution when I fixed it. I will just leave this question open if other people encounter same issue
  • myhouse
    myhouse over 4 years
    You deserve more likes. Great fix! Thanks!