[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Unable to find Java virtual Machine

Posted on 2011-05-05
Medium Priority
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
  • 3
  • 2
LVL 23

Expert Comment

ID: 35703395
- 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

ID: 35703532
- 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

mrjoltcola earned 2000 total points
ID: 35703888
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 35706387
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

ID: 35707606
"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

ID: 35708150
#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.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

872 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