I am getting this error message when I start Eclipse Helios on Windows 7:
Failed to create the Java Virtual Machine
My eclipse.ini looks as follows:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-vm
P:\Programs\jdk1.6\bin
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms120m
-Xmn100m
-Xmx1024m
My JAVA_HOME is correctly set as far as I can tell. How can I fix this?
Things I have tried so far:
- Adding the full path to javaw.exe
-vm P:\Programs\jdk1.6\bin\\bin\javaw.exe
- Removing the
-vm
option altogether - Removing
--launcher.XXMaxPermSize
fixes the issue, but it causes permgen errors - Removing the value
512
of--launcher.XXMaxPermSize
fixes the issue, but it causes permgen errors - Reducing
-Xmx
to512m
also fixes the issue.
Why can I not use '1024m' for '-Xmx' and '--launcher.XXMaxPermSize'?
I know this is pretty old now but I have just had the same issue and the problem was I was allocating to much memory to eclipse that it could not get hold of. So open eclipse.ini and lower the amount of memory that is being allocated to
-Xmx
XXMaxPermSize
I changed mine to-Xmx512m
andXXMaxPermSize256m
I removed eclipse.ini. I encountered this issue and removing the ini file solved it.
STEPS TO SOLVE THE ISSUE :-
Open the eclipse.ini file from your eclipse folder.
It has some of add on configuration . Find the line –launcher.XXMaxPermSize.It will be the last line in this file. Now remove/delete the the default value 256m and save it.
Try removing the
-vm P:\Programs\jdk1.6\bin
lines.Also, a general recommendation: set
-Dosgi.requiredJavaVersion=1.6
, not1.5
.Some time it's not your eclipse.ini; it's your JDK which is crashed. You can check it by writing following command in a command prompt:
If this command shows the following error:
Then first uninstall JDK and reinstall it.
Eclipse will be in action again ;) As today I have got the same problem, and the above is suggested by Itachi Uchiha.