'Launch error: could not create the Java virtual machine. A fatal exception has occurred
Below is my 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.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-vm C:\Program Files (x86)\Java\jre1.8.0_111\bin\javaw.exe
I did add the path for javaw.exe looking at some posts. But this addition just gave me a new error
How to fix this in my computer?
If someone can explain me on this launch config stuff in Eclipse?
Solution 1:[1]
Try updating your JDK to 8u171 or higher. I had the same issue with eclipse oxygen. This is worked for me.
Here's the URL for downloading the latest Java 8 JDK:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
If that should stop working, go to http://java.oracle.com and click "Java SE" under top downloads.
Solution 2:[2]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Devon_C_Miller |
Solution 2 | The_real_codder |