[英]On starting eclipse, it gives an error “Java was started but returned exit code=13”
I am trying to start eclipse after installing java 7 and adding the line 我试图在安装java 7并添加该行后启动eclipse
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
to the eclipse.ini file. 到eclipse.ini文件。 Still i am getting the error "Java was started but returned exit code=13".
我仍然收到错误“Java已启动但返回退出代码= 13”。
I just want to know how to start eclipse. 我只是想知道如何开始日食。 Even if i have to install eclipse, java, jre all over again.
即使我必须再次安装eclipse,java,jre。 Any suggestion will do!
任何建议都可以!
My eclipse.ini file: 我的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
On pasting the jre in eclipse folder i am getting this error: 在eclipse文件夹中粘贴jre时出现此错误:
All you have to do is to put the new jdk path in eclipse.ini 您所要做的就是将新的jdk路径放在eclipse.ini中
-vm
-vm
C:\\Program Files\\Java\\jdk1.8.0_11\\bin\\javaw.exeC:\\ Program Files \\ Java \\ jdk1.8.0_11 \\ bin \\ javaw.exe
or the your new jdk path.或者你的新jdk路径。
make sure that you type the above just before the -vmargs and after the OpenFile确保在-vmargs之前和OpenFile之后键入上面的内容
that solved my problem 这解决了我的问题
Check that you have installed the correct java that your OS requires. 检查您是否安装了操作系统所需的正确java。 Meaning, if you are running a 64 bit OS then you need 64 bit java and the same for 32 bit.
这意味着,如果您运行的是64位操作系统,则需要64位java,而32位则相同。
Check eclipse.ini
file, and in particular format of the vm
option (look here for more): 检查
eclipse.ini
文件,特别是vm
选项的格式( 在这里查看更多):
Note the format of the -vm option - it is important to be exact:
请注意-vm选项的格式 - 确切地说很重要:
- The -vm option and its value (the path) must be on separate lines.
-vm选项及其值(路径)必须位于不同的行上。
- The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
该值必须是Java可执行文件的完整绝对路径或相对路径,而不仅仅是Java主目录。
- The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
-vm选项必须在-vmargs选项之前发生,因为-vmargs之后的所有内容都直接传递给JVM。
Another thing to check is that bit version (32/64) of JVM should match bit version of eclipse (32/64). 要检查的另一件事是JVM的位版本(32/64)应该匹配eclipse的位版本(32/64)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.