我尝试在安装 java 7 并添加行后启动 eclipse
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
到 eclipse.ini 文件。我仍然收到错误“Java 已启动但返回退出代码 = 13”。
我只是想知道如何启动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 文件夹中时,我收到此错误:
最佳答案
您所要做的就是将新的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/