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

后端 未结 11 1523
余生分开走
余生分开走 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:21

    SQL Developer runs this which checks for java 9 then 8. We don't yet support (lack of a ton of testing) java 10. You went to new for us. Back up to 8 or 9 and should be fine.

    We use /usr/libexec/java_home which allows us to specify which version of java we'd like to run. So even if you have N javas installed, it should return the highest one that was passed in with flags.

       #!/bin/bash 
                  ##### THIS IS CHECKING FOR JAVA 9 #####
       TMP_PATH=`/usr/libexec/java_home -F -v 9`
    
       if [ -z "$TMP_PATH" ] ; then
    
                  ##### THIS IS CHECKING FOR JAVA 8 #####
         TMP_PATH=`/usr/libexec/java_home -F -v 1.8`
    
         if [ -z "$TMP_PATH" ] ; then
           osascript -e 'tell app "System Events" to display dialog "SQL Developer requires a     minimum of Java 8. \nJava 8 can be downloaded from:\n http://www.oracle.com/technetwork    /java/javase/downloads/"'
           exit 1
         fi
       fi
    

提交回复
热议问题