Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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 version.

Then I've installed JDK 1.6.0_27 and set the path in environment variables and run Oracle SQL Developer again, but the same error occurred.

How can I change the settings for Oracle SQL Developer to recognize 1.6.0_27 as my SDK?

like image 799
Lakshitha Herath Avatar asked Sep 12 '11 09:09

Lakshitha Herath


People also ask

Does SQL Developer need JDK or JRE?

SQL Developer requires that JDK 7 or later be installed on the system, and Oracle recommends that you install the latest available JDK version.


1 Answers

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.

like image 132
Atilla Ozgur Avatar answered Oct 06 '22 01:10

Atilla Ozgur