0

My installation of Eclipse reports error that it failed to create a Java virtual machine although I use it daily and I didn't change anything.

My eclipse.ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Haya D
  • 357
  • 2
  • 4
  • 16
  • When do you get the error, on startup? What is the exact message you get? – user1803551 Sep 29 '14 at 16:05
  • have you tried the solution in here? http://stackoverflow.com/questions/20317640/eclipse-failed-to-create-the-java-virtual-machine?rq=1 same error message and very close configuration. – Lorenzo Boccaccia Sep 29 '14 at 16:05
  • Well that's weird. Now it's not showing the error and opened very well without changing anything :) Thank you anyway – Haya D Sep 29 '14 at 16:09

1 Answers1

1

Just add your JDK path in windows environment variable.

or

Open eclipse.ini file and Change the vmargs sizes to -vmargs -Xms40m -Xmx512m -XX:MaxPermSize=256m

or

In your eclipse.ini file

Add -vm C:\Program Files\Java\jre7\bin\javaw at beginning of your eclipse.ini //make sure you have same directory structure

And then remove 256m which is below the line --launcher.XXMaxPermSize. It will work.

Shubham AgaRwal
  • 4,355
  • 8
  • 41
  • 62