Oracle SQL Developer unable to find Java Virtual Machine

Problem

Here’s my PC environment :

  1. Database : Oracle 11g
  2. OS Platform : Windows 7 Ultimate 64 bits
  3. JDK : 1.6 .0_24, 64 bits

When I click on the Oracle SQL developer, it prompts me to key in the JDK folder. However, after I specified the JDK folder, it prompts me following error dialog box :

Unable to find Java Virtual Machine. To point to a location of a Java Virtual Machine....

See figure below :

Oracle SQL developer unable to find jvm

Solution

The Oracle SQL developer is NOT supported 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.

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

For example, “SetJavaHome C:\Program Files (x86) \Java\jdk1.6.0_13“.

Update oracle sql developer conf
Tags :

About the Author

mkyong
Founder of Mkyong.com and HostingCompass.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

  • Pingback: watch movies online()

  • Pingback: weight loss techniques()

  • Pingback: Blue Coaster33()

  • Pingback: Homepage()

  • Raju Cherukuri

    Save my day thanks

    Raju Cherukuri

  • Amit

    Thanks!!
    was really well explained sweet and short.

  • Alfred

    Thanks a million.

  • shreeom

    Thanks a lot…

  • Cesar Velazco

    Thank’s man, This solution helps me so much!!! You are the best !!! =)

  • http://javadomain.in Diva

    you can find some more details in the below link,”http://javadomain.in/solved-oracle-sql-developer-unable-to-launch-the-java-virtual-machine-located-at-path/”

  • Suma

    Thanks a ton, was right on! Solved the issue in one shot.

  • tuna

    Excellent solution!!

  • Mahuzin

    Thanks ,
    works great & now i can enjoy Oracle DB’s GUI feature……….!

  • Adnan Ahmad Khan

    I got another Problem after making the change. Now it is repeatedly asking for Java.exe, Please respond quickly as i am going to start my final term project.

  • Vishu

    Awesome…worked for me…thank you

  • Anthony Cheng

    Thank you, after tons of googling this is the only place that mentioned 64 bit was not supported. Unbelievable why Java cannot give a more meaningful error message.

  • kerim baba

    Thx for the tip dude. all i needed was to see “NOT supported on 64 bits JDK”!

  • Natalia

    I normally never leave comments. But this time I had to.

    Thank you!!! so much. After an hour of troubleshooting with dead ends, I decided to google the issue, then came across your post and boom! the issue was fixed in 2 min!

  • Slutroev

    Thank you so much!

  • Jai

    Thanks for info bro.. saved lot of time..

  • nitish

    Thank you!

  • http://None anand pasunoori

    wow. u really saved my 2 hours.

    thanks
    its worked

  • Srini Angalkudru

    Thanks mkyong, your instructions were crystal clear, it really did the trick.

  • Varun P M

    Thank you mkyong. This post helped me a lot :)
    I downloaded “jdk-7u21-windows-i586.exe” from ‘http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html’ and changed the config file as you suggested. I am able to open SQL Developer now.

  • Nipa

    Thanks. It fixed the issue.

  • http://[email protected] Mohamed

    Thanks.

  • http://none kumar

    Thanks a lot mkyong. It worked.
    I cannot thank you enough. You can’t imagine how much this post of yours has helped me. I was struggling with this issue since last 4 weeks.

    THanks a ton.
    -Kumar, Melbourne, Australia

  • VNRAJU

    REALLY WORTHFULL FOR ME.

  • Moy

    It worked. Thanks! =D

  • Stian

    Cheers!

  • Shahmir

    Thanks :)

  • Chaitanya

    Thanks it worked for me :)

  • Ahmed Ktob

    Hello;

    A better solution, without installing any JDK 32 bits, is to point to the JDK installed by Oracle itself, as follow :

    SetJavaHome D:\app\AHMED\product\11.1.0\db_1\jdk

    Good luck!

    • Anil Ahuja

      Where do I put this line? Please tell me in detail.

      • Ahmed Ktob

        Hello Anil,

        Well just follow what the original post tells to access the file “sqldeveloper.conf“ :

        Step 1 :
        Open the file “sqldeveloper.conf“, which can be found under

        “{ORACLE_HOME}\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf“.

        Step 2 :
        Copy the path of the JDK 32 bits installed by Oracle, which can be found on the folder that you specified when installing Oracle, for instance :

        “D:\app\AHMED\product\11.1.0\db_1\jdk“ //This is the folder where I installed Oracle.

        Step 3 :
        Search for the line starting with “SetJavaHome”, then paste the path :

        SetJavaHome D:\app\AHMED\product\11.1.0\db_1\jdk

        If you can’t find this line, then just write it down.

        I think this is it. Good luck.

  • nkalla

    Thanks so much!

  • jayapal reddy

    when i want to edit sqldeveloper.config file after changes made to save the file it gets the error message Access Denied can you please give me the solution……….

    • Anil Ahuja

      I am also getting the same error, access denied while saving changes to sqldeveloper.conf

      • Ahmed Ktob

        As a solution try to copy the file to your desktop or someplace else, edit the file (in the desktop) and then copy and paste it again into the original place. It will ask you to override the existing file, click yes.

    • http://www.mkyong.com mkyong

      “Access Denied” means you don’t have the permission, find out why and or ask your administrator update it for you.

  • http://swayamsoft.com sandeep

    Thanks.. worked for me. Lost much time in finding solution..

  • Shahriyar Mehdi

    Thank you !!!!!!!!!!!!!!!!!!!!!!! :)

    Baku
    Azerbaijan

  • Lokesh

    Superb, Thanks a lot it worked :)

  • Kathy

    Yay! Thanks!

  • manas

    It worked for me as well…thanks a lot.

  • kmra

    Thankyou it worked………

  • Gaurav

    Its worked. Thanks

  • Gaurav

    Great.. It worked for me..

    Thanks mkyong

  • Manoj

    thanks you mkyong

  • Ravi
    thanks for the solution.. works nice :)
  • Ravi

    Thanks for the solution. it works nice.

  • User

    Thank you for solution!

  • luis

    It worked for me

    thanks ;)

  • Orkun

    Hey!

    After these changes, it prompts another error that says some dll is missing and I d better re-install..

    • http://gamux.com.br Bruno Melo

      @Orkun:
      Probably you have to install redistributable packages of C++. Try to find into MSDN website for “Microsoft Visual C++ 2010 Redistributable Package” and then navigate to version 2005 also. Install both x86 and x64 versions.