Solution to ‘Unable to Create an Instance of the Java Virtual Machine’ for JDeveloper

6 08 2009

If you receive an error message like this when you’re opening JDeveloper, here’s the fix for it.

Error message: Unable to Create an Instance of the Java Virtual Machine Located at Path ..\..\jdk\jre\bin\client\jvm.dll

Solution 1: Copy jvm.dll file in jdk/jre/bin/client and paste to jdk/jre/bin/ojvm. Since ojvm folder has a file of the same name, make a backup of it first before you paste it so that you can revert back just in case it doesn’t work.

Solution 2: Go to Control Panel -> System -> Advanced -> Environment Variables and click ‘New’ on System variables.

Variable name: JRE_HOME

Variable value: C:\Program Files\Java\jre6


Actions

Information

16 responses

4 05 2011
Jon-Eric Eliker

I tried this to no avail. However, I found a reference on another site saying this error will occur if Xmx is set to 1024 instead of the default 512m in jdev.conf. I changed this back and it started up using jvm6

4 10 2011
vanithakarthikeyen

Hi Jon,

Thanks for taking time to write the fix that worked for you . It really helped me.

Regards,
Vanitha

4 08 2014
Bhanu

Tq .. It worked for me

17 06 2017
Sanket Subhash Udare

Thanks Jon, this resolved my issue as well

28 07 2011
pablo

I have read a lot of forums in order to get the solution of this problem, and the solution for me was to Update my 7th version of Internet Explorer to the 8th one. Hope this help..

22 10 2011
Anton

Solution that helped me:
/jdev/bin/ide.conf
In this file, change this line :
AddVMOption -Xmx800M
by
AddVMOption -Xmx512M

26 02 2012
sourabh

tnx anton.,.it worked

18 12 2011
Raghuram

Still i am facing the same problem even after tried all the above solutions, please help me.

Regards
Raghuram

18 12 2011
Raghuram

I resolved the problem by decreasing the heap size from 512M to 128M, i got the solution from other site.

Thanks
Raghuram

17 01 2012
muymuynica

Thanks, I solved it too in the same way as you: decreasing the heap size from 512M to 128M.

BEFORE: AddVMOption -XX:MaxPermSize=256M

AFTER (NOW): AddVMOption -XX:MaxPermSize=128M

4 03 2014
diegoehg

It worked for me too, thanks a lot!

4 04 2012
sm

Thanks Raghuram, Even I tried everything and only your option of reducing the Heap to 128 worked for me..

Thanks

16 04 2012
waire

for me there was an

AddVMOption -Xmx768M

directive in \jdev\bin\jdev.conf

that I changed to the following (as suggested by the comment above the line):

#
# Set the maximum heap to 512M
#
AddVMOption -Xmx512M

9 06 2012
cris2brasil

Hi,

I had the same problem on windows XP with sql developer v3.1.07.42

Here’s what I did to solve my problem :
in “C:\Program Files\sqldeveloper\ide\bin\ide.conf” :

#AddVMOption -Xmx640M
AddVMOption -Xmx512M

21 07 2012
jmac

On WinXP SP3 32-bit / jdk6u32 / JDeveloper 11g R2, adding the AddVMOption -Xmx512M to jdev\bin\jdev.conf worked for me.

2 05 2014
Chinmay

Thank you Anton your solution worked

Leave a reply to Chinmay Cancel reply