How to change settings for SQL Developer to correctly recognize current version of SDK

后端 未结 12 2090
天命终不由人
天命终不由人 2020-12-11 14:54

I\'ve installed Oracle 11g r2 to my machine and when I opened Oracle SQL Developer it says: java 1.6.0_02 is not supported and telling me to install new java ve

相关标签:
12条回答
  • 2020-12-11 15:36

    With SQL Developer 19.1 (2018) I tried to install it with Java 11 but it failed, so for luck I still have an old java 8 version jdk8u202-b08. If that happens you need to remove this folder

    C:\Users\<username>\AppData\Roaming\sqldeveloper
    

    And then run the exe again

    C:\..\sqldeveloper-19.1\sqldeveloper.exe
    
    0 讨论(0)
  • 2020-12-11 15:37

    Yes, Oracle just made a dumb installation package to makes us waste our time...good job guys!!!

    The thing is, there should be a wizard/installer to configure the java path, this is because the jdk that comes pre-configured just doesn't work. Personally, I had to edit to the sqldeveloper.conf under sqldeveloper\bin just has Nivas said and change the pre-configured path "SetJavaHome ../../jdk" to "SetJavaHome C:\Program Files\Java\jdk1.8.0_73" - for earlier versions of sqldeveloper it's a requirement to have Java8 and be sure that if you install SQLDeveloper x64 version that the java version that you set in your path is also x64.

    0 讨论(0)
  • 2020-12-11 15:37

    If you are using SQL developer > 4.x you can find this setting at this location on windows:

    <USER HOME PATH>\AppData\Roaming\sqldeveloper\<VERSION>\product.conf
    

    and change SetJavaHome to your JDK path. You can get the user home path on the command prompt using %homepath%.

    0 讨论(0)
  • 2020-12-11 15:39

    In order to change the version of SDK linked to your SQL developer, uninstall the other versions of SDK and install the required version. Once you install the required version, try running SQL developer it will automatically prompt you to attach the path. ANd you can provide the new path.

    0 讨论(0)
  • 2020-12-11 15:41

    If you have MacOS :

    1. Get the JDK home path eg: /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home
    2. Go to eg : cd /Users/sarath_sukumaran/.sqldeveloper/19.2.1
    3. Edit product.conf to set SetJavaHome eg : SetJavaHome /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home

    4. Re-open the SQL Developer and check the Java version from 'About Oracle SQL Developer' > Version

    0 讨论(0)
  • 2020-12-11 15:41

    None of the sqldeveloper.conf had an entry in my case, and i downloaded another zip installation, which gave me same error for same JDK versoin, without me configuring anything, S

    COMPANY=Oracle PRODUCT=SQL Developer VERSION=19.01000942042f VER=19.1.0 VER_FULL=19.1.0.094.2042 BUILD_LABEL=094.2042 BUILD_NUM=094.2042 EDITION=

    0 讨论(0)
提交回复
热议问题