Unable to find Java virtual Machine

Posted on 2011-05-05
Last Modified: 2012-05-11
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?.
Question by:claghorn
    LVL 23

    Expert Comment

    - go to your control panel, you should see a Java icon there. click to open it up and go to "Java" tab. you will see list of java runtime. look for the one with 'enabled' check and note the path. depending on your setup, the path might look like "C:\Program Files\Java\jdk1.6.0_16"
    LVL 23

    Expert Comment

    - i am not sure if this workaround still aplicable in the version that you have:

    : find the configuration file with the name ide.conf in sqldeveloper/jdev/bin/ folder
    : change this line AddVMOption -Xmx512M
    to AddVMOption -Xmx256M
    LVL 40

    Accepted Solution

    You edit sqldeveloper.conf and change SetJavaHome line.

    If you don't have a recent Java, you can download SQL Developer with a bundled JVM.

    Mine is running SQL Developer 3 with JDK 1.6.0_19

    Author Comment

    My control panel java icon says:
    C:\Program Files\Java\jre6\bin\javaw.exe
    but the sqldeveloper .conf file says:
    SetJavaHome C:\Program Files\Java\jdk1.6.0_24
    I have a weird setup on this PC. Someone installed sqldeveloper on C:\ drive
    Installed Oracle client on C:\
    Then deleted client from C:\
    Then installed 110g client on D:\
    Sqldeveloper works on C:\ as version 3.
    Sqldeveloper does not work on D:\ as version 1
    It does not complain any more about not finding the jvm but it errors when trying to connect to anything.
    No sqlplus will work - adapter error.

    I connect to a db on virtual machine local on my pc using the sqldeveloper on my C:\ drive.

    The D:\ sqldeveloper .conf file says:

    SetJavaHome D:\app\TonyD\product\11.2.0\client_1\jdk

    Sorry for the confusion. I do not really know how things are working but I do have a sqldeveloper operational on my C:\ drive. But I have no Sqlplus working at all.

    I guess my oracle home is:

    I'll have to figure out how things are actually working to finnish this issue and close it out.
    LVL 23

    Expert Comment

    "it errors when trying to connect to anything."
    - share with us the error it prompt.

    "but I do have a sqldeveloper operational on my C:\ drive."
    - are you able to connect to the oracle database server from your pc using the c drive sqldeveloper?

    - if you already have a database server running on another machine, and your goal is to have your windows7 to connect to that database server, install oracle instant client and set it up to connect to the database server. i' can see that the windows 7 have been installed with oracle client and if you are not sure does it work or not, i suggest you to read the documents:

    Author Closing Comment

    #SetJavaHome C:\Program Files\Java\jdk1.6.0_24
    SetJavaHome D:\app\TonyD\product\11.2.0\client_1\jdk
    Yes, I needed to know where to make the change. Changing sqldeveloper.conf did tyhe trick.
    I commented out the original and went with the second. I am using the one sqldeveloper that came with an 11g client install. It is on my D:\ mdrive. As for the other, I will leave it alone and not use it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
    How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
    This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
    This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now