Elmore
Elmore

Reputation: 1

exit code = 13 when running eclipse in windows

I got an error of exit code = 13 when trying to run eclipse and based on an answer from stack overflow, it said to modify my eclipse.ini file based on this site. https://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example

I went here and modified my eclipse.ini file and added
-vm

C:\Program Files(x86)\Java\jdk1.8.0_131\bin\javaw.exe

This gave me an error of exit code = 1 and the site said to add this line -vm

C:\Program Files(x86)\Java\jdk1.8.0_131\jre\bin\server\jvm.dll

So I added that by itself and got the same error, then I added both lines and still got the same error. Would anyone be able to help me. I am adding an image of the error and my code.

Thanks

This is my eclipse.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-vm
C:\Program Files(x86)\Java\jdk1.8.0_131\bin\javaw.exe
-vm
C:\Program Files(x86)\Java\jdk1.8.0_131\jre\bin\server\jvm.dll

Eclipse error and eclipse.ini file

Upvotes: 0

Views: 1158

Answers (1)

nitind
nitind

Reputation: 20003

You have two different sets of -vm lines. You should only have one. Both of them also point to 32-bit copies of Java, which will not run a 64-bit version of Eclipse.

Upvotes: 1

Related Questions