Sachin Thapa
Sachin Thapa

Reputation: 3709

Eclipse neon "Could not create the JVM"

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

Upvotes: 4

Views: 32621

Answers (7)

Jemuel Abrian
Jemuel Abrian

Reputation: 11

i just deleted the eclipse.ini then it worked like a charm

Upvotes: 1

Kalaivani Sivasami
Kalaivani Sivasami

Reputation: 1

just add your jdk path on the top of your init file as below.

-vm

C:/Program Files/Java/jdk1.8.0_71/bin/javaw

Upvotes: 0

farhan Habib
farhan Habib

Reputation: 11

Download and install JRE version 8, as it's required by Eclipse.

Upvotes: 1

user6629913
user6629913

Reputation: 182

I received this error after upgrading from neon.2 to neon.3. Since Eclipse is ever-changing, what worked last year may not work today. My experience has shown the VM args to usually be the culprit in this situation, so my solution was to remove the -vmargs section of my eclipse.ini file and then restart Eclipse.

In my case it started correctly, so I added the VM args back one at a time until it failed. The source of my startup problems this time was -XX:+UseParallelGC. After some research I swapped it out for -XX:+UseG1GC and now I'm back in business.

Upvotes: 1

B.K
B.K

Reputation: 897

There is chance that the current eclipse you have was not completely downloaded. Try downloading again and try the set up again.

Upvotes: 1

Himanshu Bhandari
Himanshu Bhandari

Reputation: 1879

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

Upvotes: 12

Vijeta Mehra
Vijeta Mehra

Reputation: 126

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

Upvotes: 6

Related Questions