Eclipse中Reasons for Java was Started but Returned Exit Code=13 Error

这里写图片描述

Before going to the solution, let us know why it is showing that error. If you know the problem behind this issue we can easily fix that error.

Reason 1: The most common reason behind this problem is, we are trying to install different bit version-that is, 64 bit or 32 bit version of the software. It maybe either Eclipse or Java.

Reason 2: Configuration mistake in Eclipse.ini file

Reason 3: Special characters ( #, !, @) in Eclipse installation directory.

Reason 4: You maybe using latest version of Eclipse, but you might be using wrong version or unsupported version of Java Virtual Machine (JVM)

The above are the main reasons causing that Exit code =13 in eclipse. Now let us know how to fix that error.
How to Fix Java was Started but Returned Exit Code=13 Error in Eclipse:

Solution for Reason 1:
Check which version of operating system you are running. To check that, open windows explorer by pressing Win+E key on your keyboard.

这里写图片描述
Now on This PC (My Computer) which you found on left side, Select that and right click on mouse. In that pop up menu choose Properties option. When you click that properties option you will see system properties window. In that window have a look on “System Type” option.

In that System type you will see 64-bit Operating System. That’s what we need to know.

Now we know which version of operating system we are running.
After knowing operating system version, make sure you downloaded the 64-bit version of Eclipse as well as 64-bit version of Java software.

Please double check the versions which you have downloaded. Because during installation it won’t show any error regarding incompact able version. It will install smoothly.

In my case I have installed 32 bit version of Java so I’m getting that error.

Solution for Reason 2:
Maybe you might have made a mistake in configuring Eclipse.ini file, which can be found on Eclipse directory itself. You can check this official guide if needed.

Here the few important rules to be noted while specifying -VM option

• The -vm option and its value (the path) must be on separate lines.
• The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
• The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
You can check the below screenshot of my working Eclipse.ini configuration.

这里写图片描述

Solution for Reason 3:
You have might have special characters like #, !, @ in eclipse installation directory. That is, if your eclipse installation address contains any special characters, then it shows that error. So make sure you don’t have any special characters.

Example:
Before fixing special character
C:# IDE\eclipse 3.7\
Have you noticed that “#” character?
After fixing that special character in address
C:\IDE\eclipse 3.7\
and that solved the problem.

Reason 4 Solution:
Maybe you are using latest eclipse version and unsupported Java version.

这里写图片描述

Now in that console type Java -version command to know java version.

Now research whether eclipse support that version or not.
(or)
You can open “readme” folder in Eclipse folder and open readme_eclipse.html to see which version it supports.
(or)
I recommend you to download both Java and eclipse latest version. Hope you have fixed Java was Started but Returned Exit Code=13 Error in Eclipse by following this post. Let us know which reason causing you that error by comment.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值