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

后端 未结 12 2089
天命终不由人
天命终不由人 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:19

    Adding a solution for Mac.

    Edit this file: /Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/jdk.conf

    Uncomment the below line for SetJavaHome and give it the full path to JDK1.8. As of today, it does not work with JDK 11.

    # By default, the product launcher will search for a JDK to use. If you wish
    # to specify a JDK to use for all users of this install, uncomment the line
    # below and set the path the the preferred JDK
    #
    # SetJavaHome /path/jdk
    
    0 讨论(0)
  • 2020-12-11 15:20

    In windows 10, I needed to go to following folder and change following product.conf file and set SetJavaHome directive.

    %APPDATA%\sqldeveloper\<product-version>\product.conf
    

    in my machine:

    C:\Users\ati_o\AppData\Roaming\sqldeveloper\17.4.0\product.conf
    

    with following line.

    SetJavaHome C:\Tools\oraclejdk8
    

    Thanks to comment from @thatjeffsmith, in MacOS or Linux/Unix, go to:

    $HOME/.sqldeveloper/<product-version>/product.conf
    

    to set same SetJavaHome directive.

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

    One solution is to install the latest Oracle SQL Developer. Link @ SQL Developer Downloads . This installation will install and use the latest Java version 1.8.x.

    The sqldeveloper.conf file resides at a newer location at ...\sqldeveloper\sqldeveloper\bin .

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

    sqldeveloper.conf under sqldeveloper/bin in the SQLDeveloper base directory has an entry for the java home being used.

    (So, on Windows, if you have unzipped SQLDeveloper to C:\sqldev then sqldeveloper.conf is under C:\sqldev\sqldeveloper\bin)

    Something like:

    SetJavaHome C:\Program Files\Java\jdk1.6.0_20
    

    Quit SQLDeveloper, remove this entry and relaunch SQLDeveloper. You should be prompted for the location of Java.

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

    This workaround helped many people (including me) during the last 12 months, so you must try it if you still have the problem:

    • Go to sqldeveloper\jdk\jre\bin folder and locate "msvcr100.dll"
    • Copy this dll to C:\Windows\System32 folder

    Obs: you will need to provide administrator authorization to finish the file copy, so you must be logged on as a true windows administrator.

    After copying the file, just try to start the sqldeveloper again. No reboot needed.

    Hope this helps you too!

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

    Go to sqldeveloper\sqldeveloper\bin and edit sqldeveloper.conf file.

    There you'll see

    SetJavaHome C:\Program Files\Java\jdk1.6.0_21
    

    Change it to correct jdk path

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