Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to find a java virtual machine.

claghornMay 5 2011 — edited Oct 28 2019
I have a sqldeveloper intallation on windows 7. When I started it up for first time it asked me to point to a java.exe. Well I think I pointed it to the wrong one because now when I go to start it up I get the message "unable to find java virtual machine" How do I change it to point to a different java.exe. There are many java.exe. How do I know which is the right one?. The one that it wants. How do I get this prompt back so I can tell it to point to the right one?.
This post has been answered by claghorn on May 6 2011
Jump to Answer

Comments

-K-
Make sure you're pointing to a 1.6 JDK in \sqldeveloper\bin\sqldeveloper.conf or delete the entry to get the prompt:
SetJavaHome C:\Archivos de programa\Java\jdk1.6.0_16
Hope that helps,
K.
claghorn
Answer
This got solved setting the following line in sqldeveloper.conf
SetJavaHome D:\app\ScottD\product\11.2.0\client_1\jdk
Its starts and can connect.
Marked as Answer by claghorn · Sep 27 2020
880390
When I am trying to install Oracle SQL developer 3.0, I am facing the similar problem

"Oracle SQL Developer
Unable to launch the Java Virtual Machine
Located at path: C:\Program Files\Java\jdkl.7.O\jre\bin\server\jvm.dll"

The file exist at the same location mentioned above. Not yet able to to find a solution. If anyone get a solution please do post.

Regards,
Sandeep S

Edited by: user10082291 on Aug 4, 2011 2:09 PM
Gary Graham-Oracle
Hi Sandeep,

You posted the same thing 4 minutes earlier on another thread in this forum. Please avoid duplicate posts.

Thanks,
Gary
877449
Hello , having a similar problem. Looking for a fix. Oracle 11g client on Windows 7 machine.

Fisrt, when I try to start sqldeveloper I kept getting a message like "Windows is trying to find SQLDEVELOPER.BAT..." It didnt find it but found some other .bat and gave me
an option to fix the shortcut. I tried the fix button a few times but it did not help so deleted the shortcut.
So I am starting sqldeveloper via the sqldeveloper.exe file.

I was getting a prompt to Enter the full pathname for java.exe. I tried a number of paths:

C:\app\mike\product\11.2.0\client_1
C:\app\mike\product\11.2.0\client_1\jdk
C:\app\mike\product\11.2.0\client_1\jdk\bin
C:\app\mike\product\11.2.0\client_1\jdk\jre
C:\app\mike\product\11.2.0\client_1\jdk\jre\bin

None of these work. I took the suggestion from claghorn and updated the line in sqldeveloper.conf
SetJavaHome D:\app\mike\product\11.2.0\client_1\jdk

Still getting an error. I see two windows. One says :

"Unable to find a Java Virtual Machine. To point to a location of a Java Virtual Machine, please refer to the
Oracle9i JDeveloper Install Guide"

The other looks like a command window. There are three messages in this window

WARNING: Could not find jvm.cfg in C:\app\mike\product\11.2.0\client_1\jdk\jre\lib\jvm.cfg
WARNING: Cannot find default VM "client" at C:\app\mike\product\11.2.0\client_1\jdk
ERROR: Cannot find VM at C:\app\mike\product\11.2.0\client_1\jdk
Aborting!

I do find a jvm.cfg file in

C:\app\mike\product\11.2.0\client_1\jre\1.5.0\lib\amd64

There is not much in the file.

What is the true fix? This is a new install of the 11g2 client. All the paths mentioned above are valid. I can see the directories, sub dirs, .exe files, .dll files etc.
Do I really need to install a 1.6 JDK in addition to all this stuff that came with the client install??

Thanks for any help
877449
Well I went ahead and installed the 1.6 JDK from here - http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html
I updated sqldeveloper.conf to point to C:\Program Files\Java\jdk1.6.0_25
Still not working...I get prompted to enter full path to java.exe. I browse to the file but the prompt keeps popping up. I tried pasting the path instead of browsing. Still no good.
I tried C:\Program Files\Java\jdk1.6.0_25
I tried C:\Program Files\Java\jdk1.6.0_25\bin
I tried changing back slashes to froward slashes

Any suggestions??
877449
Me again. I found the following in another thread:

*******************************************************
Re: install sqldeveloper on windows 7 64 Bit and Oracle 11.2
Posted: May 31, 2011 2:32 AM in response to: -K- in response to: -K-
Hello,

I had a similar problem which I've solved. It seems you've already done everything which was necessary, but in case you've missed something, here's the check list that worked for me today :

64-bit OS
64-bit JDK, not JRE (manual install, it is not bundled with the Oracle 64-bit install)
64-bit SQLDeveloper (new manual install, not the Oracle-bundled one)

Then edit of the sqldeveloper.conf file (be sure to edit the right one, not the Oracle-bundled sqldeveloper!), add the path to your 64-bit JDK :
path to conf file : ...\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
edit (path to 64-bit JDK on my machine) : SetJavaHome C:\Program Files\Java\jdk1.6.0_25

And now make sure to launch the proper sqldeveloper.exe (not the Oracle-bundled one), at: ...\sqldeveloper\sqldeveloper.exe.
It shouldn't prompt you for the JDK path anymore and start gracefully.

Best of luck to you, regards,
S. Jallard
*************************************************

So I went and installed 64 bit sql developer and it is now working

Thanks
880390
Hi,

I found the answer to solve this problem. I have installed Java 7 JDK. I just set the Path of java in system properties.

Steps to add path in Windows 7 64bit is as follows:
1. Right click on My computer, then click on properties.
2. On left pane click on "Advanced system settings".
3. Click on "Advanced>Envionment Variables"
4. In system variables box under Variable column look for text "Path".
5. Select that row and click on Edit.
6. In "Variable Value" text box append the path of java installation seperated by other path with ";" in my case I appened it with ";C:\Program Files\Java\jdk1.7.0\bin"
7. Then just click on ok and then run the application which is giving you this error.

I worked for me wish it work for you also.

Regards,
Sandeep Shivhare
696804
This questions is marked answered though non of the solutions above worked for me; running a SQL developer 64bit version on a win 64 bit machine. The simplest solution I found is to down load sql developer 32 bit version with the accompanies jdk. Provided you do not have an immediate need to install the 64 bit version.

Cheers,
Dominic
642836
maybe this thread helps: 674963

in short : you need 32bit jdk in order to run sqldeveloper.
1030615

I have faced the same error while opening Sql Developer bundled with the Oracle 11g in  win 7 os 64 bit machine.

I fixed the problem in two steps :

1. Installed  Windows x86 JDK (32 bit) from                                       

http://download.oracle.com/otn-pub/java/jdk/7u25-b16-demos/jdk-7u25-windows-i586-demos.zip         

2.Open   G:\app\product\11.2.0\dbhome_1\sqldeveloper\bin\sqldeveloper.con   file  in notepad (I have installed Oracle db in G directory)   and  Change the path  SetJavaHome    C:\Program Files (x86)\Java\jdk1.7.0_25.  Save the file .

Done..!! It worked fine..!

Thanks,

Abdul Shaheer

1 - 11
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 13 2013
Added on May 5 2011
11 comments
211,766 views