Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse neon "Could not create the JVM"

Tags:

eclipse

We are setting up eclipse neon on Java 1.7 and it fails to start showing a popup with message

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Here is configuration in eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx512m
like image 663
Sachin Thapa Avatar asked Nov 29 '22 22:11

Sachin Thapa


2 Answers

I found this answer helpful. I was getting this error even after using java 8, So just delete eclipse.ini file, but backup first.

like image 116
Himanshu Bhandari Avatar answered Dec 09 '22 08:12

Himanshu Bhandari


As of Eclipse Platform 4.6, and the Neon release, a Java 8 (or later) JRE or JDK is required to run Eclipse.

like image 28
Vijeta Mehra Avatar answered Dec 09 '22 10:12

Vijeta Mehra