Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (7k points)

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?

1 Answer

0 votes
by (13.1k points)

Try removing the -vm P:\Programs\jdk1.6\bin lines.

Also, a general recommendation: set -Dosgi.requiredJavaVersion=1.6, not 1.5

Want to learn Java? Check out the Java certification from Intellipaat.

Related questions

Browse Categories

...