3 Replies Latest reply on Jul 21, 2014 5:52 PM by Gary Graham-Oracle

    SQL Developer does not use latest JDK version installed - OS X 10.9

    b29edc31-0077-4029-9e53-2ce8021c5ba1

      Hi everyone,

       

      I have both Oracle JDK 1.7 and 1.8 installed on my Mac. The following command correctly shows the latest in place.

       

      $ /usr/libexec/java_home
      /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home
      $ echo $JAVA_HOME
      /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home
      

       

      However, SQL Developer always use the JDK 1.7.

      http://glui.me/?i=oucto25tzd5mpsw/SQLDeveloper_use_JDK17.png/

       

      Of course, I can explicitly specify the above JDK 1.8 home into "~/.sqldeveloper/4.0.0/product.conf" with "SetJavaHome", but this will require me to repeat every time I update JDK to latest version.

       

      Is there anyway I can tell SQL Developer to always look for the latest installed version of JDK 1.8?

       

      Thank you!