java - 启动eclipse时,出现错误 "Java was started but returned exit code=13"

标签 java eclipse java-7

我尝试在安装 java 7 并添加行后启动 eclipse

-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe

到 eclipse.ini 文件。我仍然收到错误“Java 已启动但返回退出代码 = 13”。 enter image description here

我只是想知道如何启动eclipse。即使我必须重新安装eclipse、java、jre。 任何建议都可以!

我的 eclipse.ini 文件:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

在将 jre 粘贴到 eclipse 文件夹中时,我收到此错误:

enter image description here

最佳答案

您所要做的就是将新的jdk路径放入eclipse.ini中

-vm
C:\Program Files\Java\jdk1.8.0_11\bin\javaw.exe
or the your new jdk path.
make sure that you type the above just before the -vmargs and after the OpenFile

解决了我的问题

关于java - 启动eclipse时,出现错误 "Java was started but returned exit code=13",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19724839/

相关文章:

java - Hibernate 查询语言问题

Java HashMap 作为方法参数 - 未指定 "value"类型

java - 让 Eclipse 自动尝试在一堆 .java 文件上添加导入

java - 如何在 Java 中将字符串 AM/PM 日期转换为时间戳?

java - 刷新 GZIPOutputStream 然后重置 ByteArrayOutputStream 是否安全?

java - Android 上的 onActivityResult

java方法返回类型不是实际类型

java - 无法在 Android AVD 上运行我的项目

java - 切入点格式错误 : Class must not be null

java - 如果没有安装 Java,带有捆绑 JRE 的应用程序将无法运行