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
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
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.
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 .
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.
This workaround helped many people (including me) during the last 12 months, so you must try it if you still have the problem:
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!
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