Shyam Zawar
Shyam Zawar

Reputation: 25

Error: Could not create the java virtual machine issue in eclipse in Windows 7 64bit

This is my eclipse.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-vm 
C:\Program Files\Java\jdk1.8.0_25\jre\bin\server\jvm.dll

This is the error message : Error: Could not create the java virtual machine.

Java was started but returned exit code = 1

Upvotes: 0

Views: 2891

Answers (1)

Saravana
Saravana

Reputation: 12817

From https://wiki.eclipse.org/Eclipse.ini documentation, Place -vm before -vmargs

-vm 
C:\Program Files\Java\jdk1.8.0_25\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

Upvotes: 1

Related Questions