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
3
  • When do you get the error, on startup? What is the exact message you get? Commented Sep 29, 2014 at 16:05
  • have you tried the solution in here? stackoverflow.com/questions/20317640/… same error message and very close configuration. Commented Sep 29, 2014 at 16:05
  • Well that's weird. Now it's not showing the error and opened very well without changing anything :) Thank you anyway Commented Sep 29, 2014 at 16:09

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.