Eclipse-Error: Could not create the Java Virtual Machine


Eclipse-Error: Could not create the Java Virtual Machine

Eclipse-Error: A fatal exception has occurred. Program will exit.

eclipse could not create the java virtual machine

Try following things:

  • Make sure your JAVA_HOME and Path variables for Java path are correctly configured
  • In eclipse.ini make sure that -vm is ahead of -vmargs

-vm
JAVA_HOME\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8

  • Make sure that Java, Eclipse and Operating system have same versions of 32 bit or 64 bit
  • Try to reinstall JDK
  • Try Different version of Eclipse
  • Make sure your Eclipse is in C drive. In my case Eclipse was in D: in some folder hierarchy and the moment I shifted it to C: Eclipse started working so I guess some Path related issue was there.
  • If someone can point out exact reason then It will great for other readers.

Leave a comment

Your email address will not be published. Required fields are marked *