[Solved] could not create the java virtual machine

[Solved] could not create the java virtual machine

 

When this exception or error will occur ?

If any configurations in the eclipse.ini file is wrong then this error could occur.

Possible solution/Fix:

[It worked for me when I had the same issue]
If you have installed eclipse, then try to find the eclipse configuration file, which will be generally available in the eclipse folder [where you have eclipse.exe file].

file name: eclipse.ini [file type: configuration settings]

Find the below entry in the eclipse.ini file,

-Xmx1350m or -XmxANYOTHERVALUE

then change the value to,

-Xmx1024m [will fix the issue]

then this issue will be resolved.

Please add your comments if it did not resolve or any other way is there to resolve it to help others.

Leave a Reply