Java was started but returned exit code = 13

Before I begin, I am using a 64 bit OS (Windows 8), 64 bit Eclipse, and what I assume to be a 64 bit JDK since I reinstalled it before this attempt. I've checked out many similar posts on SO over the past few hours, and while I think I've made some progress, none of the solutions seem to be working for me.

My error message:

Java was started but returned exit code=13
C:Program Files (x86)Javajre7binjavaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:eclipseplugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os win32
-ws win32
-arch x86_64
-showsplash
C:eclipseplugins/org.eclipse.platform_4.3.1.v20130911-1000splash.bmp
-launcher C:eclipseeclipse.exe
-name Eclipse
--launcher.library
C:eclipseplugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835eclipse_1503.dll
-startup
C:eclipseplugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-exitdata 171c_68
-product org.eclipse.epp.package.standard.product
-vm C:Program Files (x86)Javajdk1.7.0_51binjavaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:eclipseplugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar

Here is my eclipse.ini:

-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.v20130807-1835
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-vm
C:Program Files (x86)Javajdk1.7.0_51jrebinjavaw.exe
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

If there's any other information that would be helpful in diagnosing the situation (path variables?), please do not hesitate to ask. I would really appreciate some help with getting Eclipse up and running.


It looks like you're trying to launch a 32-bit JVM with some 64-bit Eclipse libraries. The fact that your Java install is in C:Program Files (x86) strongly suggests that it's a 32-bit installation. But the Eclipse launcher is the 64-bit version, and you're passing the 64-bit architecture flag -arch x86_64 . You need to get things to match -- either by uninstalling your 32-bit JVM and installing a 64-bit one, or (not a good choice) installing a 32-bit version of Eclipse instead.


Try going into your eclipse directory and

C:EclipseMars>mklink javaw.exe "C:Program FilesJavajdk1.7.0_79bin"
symbolic link created for javaw.exe <<===>> C:Program FilesJavajdk1.7.0_79bin

where the path in C:Program Files points to your 64bit jdb or jre javaw.exe


Your jdk path in environment variable JAVA_HOME does not exist in your system . Due to improper shutdown of the system , your jdk gets deleted from program files/java folder . You need to reinstall jdk again .

链接地址: http://www.djcxy.com/p/29562.html

上一篇: 我无法启动Eclipse,我得到errorcode = 6

下一篇: Java已启动,但返回退出代码= 13