Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle SqlDeveloper JDK path

I have recently installed sqldeveloper but i'm getting the below warning window when I try to launch it. This is causing the sqldeveloper to run very very slow and it hangs frequently

enter image description here

I have tried editing the file sqldeveloper.cong as suggested in the window above but does not work

Original

SetJavaHome ../../jdk

Update 1

SetJavaHome C:\Program Files\Java\jdk1.7.0_60\bin\ and all other variations but still getting the above warning window

Update 2 SetJavaHome C:\Program Files (x86)\Java\jre7\bin and all other variations

Please suggest the correct way

like image 704
michael Avatar asked Jun 24 '14 15:06

michael


People also ask

Where is SQL Developer exe located?

Start your screen reader. Start SQL Developer by running the file sqldeveloper.exe located in the folder <sqldev_home> \sqldeveloper\sqldev\bin .

Where is full pathname of JDK installed?

In windows the default is: C:\Program Files\Java\jdk1.

Does Oracle SQL Developer need JDK?

Oracle SQL Developer requires the Java Development Kit (JDK) to run. If you are using Windows, you have the option to download a version of SQL Developer that includes the JDK.


2 Answers

The message seems to be out of date. In version 4 that setting exists in two files, and you need to change it in the other one, which is:

%APPDATA%\sqldeveloper\1.0.0.0.0\product.conf 

Which you might need to expand to your actual APPDATA, which will be something like C:\Users\cprasad\AppData\Roaming. In that file you will see the SetJavaHome is currently going to be set to the path to your Java 1.8 location, so change that as you did in the sqldeveloper.conf:

SetJavaHome C:\Program Files\Java\jdk1.7.0_60\bin\ 

If the settig is blank (in both files, I think) then it should prompt you to pick the JDK location when you launch it, if you prefer.

like image 106
Alex Poole Avatar answered Sep 21 '22 18:09

Alex Poole


another thing you could try is to rename your old jdk folder, lets say its:

C:\Program Files\Java\jdk1.7.0_04

change it to saomething like:

C:\Program Files\Java\xxxjdk1.7.0_04

Now, you should once again asked to set your jdk folder location on Oracle SqlDeveloper launch, and you can chose the right path.

Not the most elegant solution, but it worked for me.

Milos

like image 32
Milos Avatar answered Sep 19 '22 18:09

Milos