Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle SQL Developer: Unable to find a JVM

I'm trying to open Oracle SQL Developer on my Windows7 64-bit.

When I tried to open SQL Developer it asked for java.exe path and I gave C:\Java\jdk1.6.0_34\jre\bin\java.exe

I got an error from Oracle SQL Developer saying: Unable to find a Java Virtual Machine. To point to a location of a JVM. Please refer to oracle9i jdeveloper install guide (jdev install.html)

enter image description here

enter image description here

Any clue on how to fix this?

Another Solution:

This worked for me several times. Install JDK7 and point to location of jdk7\jre\bin\java.exe

like image 277
AppSensei Avatar asked Apr 10 '13 15:04

AppSensei


People also ask

How do I find my JVM?

Go to Control Panel, and look for the Java control panel applet. In there click on the Java tab, and then the "View..." button. The window that pops up should have the paths to the Java VM executables.


2 Answers

Probably this is you are looking for (from this post):

Oracle SQL developer is NOT support on 64 bits JDK. To solve it, install a 32 bits / x86 JDK and update your SQL developer config file, so that it points to the 32 bits JDK.

Fix it! Edit the “sqldeveloper.conf“, which can be found under “{ORACLE_HOME}\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf“, make sure “SetJavaHome” is point to your 32 bits JDK.

Update: Based on @FGreg answer below, in the Sql Developer version 4.XXX you can do it in user-specific config file:

  • Go to Properties -> Help -> About
  • Add / Change SetJavaHome to your path (for example - C:\Program Files (x86)\Java\jdk1.7.0_03) - this will override the setting in sqldeveloper.conf

Update 2: Based on @krm answer below, if your SQL Developer and JDK "bits" versions are not same, you can try to set the value of SetJavaHome property in product.conf

SetJavaHome C:\Program Files\Java\jdk1.7.0_80

The product.conf file is in my case located in the following directory:

C:\Users\username\AppData\Roaming\sqldeveloper\1.0.0.0.0

like image 85
evgenyl Avatar answered Sep 18 '22 00:09

evgenyl


I just installed SQL Developer 4.0.0.13 and the SetJavaHome can now be overridden by a user-specific configuration file (not sure if this is new to 4.0.0.13 or not).

The location of this user-specific configuration file can be seen in the user.conf property under 'Help -> About' on the 'Properties' tab. For example, mine was set to:

C:\Users\username\AppData\Roaming\sqldeveloper\1.0.0.0.0\product.conf 

On Windows 7.

The first section of this file is used to set the JDK that SQLDeveloper should use:

# # By default, the product launcher will search for a JDK to use, and if none # can be found, it will ask for the location of a JDK and store its location # in this file. If a particular JDK should be used instead, uncomment the # line below and set the path to your preferred JDK. # SetJavaHome C:\Program Files (x86)\Java\jdk1.7.0_03 

This setting overrides the setting in sqldeveloper.conf

like image 45
FGreg Avatar answered Sep 17 '22 00:09

FGreg