11 Replies Latest reply: Aug 16, 2013 3:34 PM by bf7fcb3f-812e-4a24-b408-2f92be22355b RSS

    Unable to find a java virtual machine.

      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?.
        • 1. Re: Unable to find a java virtual machine.
          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,
          • 2. Re: Unable to find a java virtual machine.
            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.
            • 3. Re: Unable to find a java virtual machine.
              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.

              Sandeep S

              Edited by: user10082291 on Aug 4, 2011 2:09 PM
              • 4. Re: Unable to find a java virtual machine.
                Gary Graham-Oracle
                Hi Sandeep,

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

                • 5. Re: Unable to find a java virtual machine.
                  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:


                  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

                  I do find a jvm.cfg file in


                  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
                  • 6. Re: Unable to find a java virtual machine.
                    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??
                    • 7. Re: Unable to find a java virtual machine.
                      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-           

                      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

                      • 8. Re: Unable to find a java virtual machine.

                        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.

                        Sandeep Shivhare
                        • 9. Re: Unable to find a java virtual machine.
                          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.

                          • 10. Re: Unable to find a java virtual machine.
                            maybe this thread helps: SQLDeveloper 1.5.1 won't recognise JDK.

                            in short : you need 32bit jdk in order to run sqldeveloper.
                            • 11. Re: Unable to find a java virtual machine.

                              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                                       


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



                              Abdul Shaheer