java退出代码,Eclipse给出“Java已经启动但返回退出代码13”

All hell broke loose after i uninstalled my java 6 and installed java 7 (both jdk and jre). On opening eclipse it gave the error that "No JVM found at.....". So, i explicitly gave the location of javaw.exe as

-vm

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

in the eclipse.ini file. Now it says "Java was started but returned exit code 13".

Also, in the elispse.ini file i changed

-Dosgi.requiredJavaVersion=1.5

to

-Dosgi.requiredJavaVersion=1.7

There are many solutions online like :

but none of them works. Any insight?

解决方案

if you have updated your jdk to 7 you are most likely to face this problem.

This happens mainly due to:

incompatible sdk and jdk versions

using a 32 bit java version for your 64 bit eclipse JVM (programfilex86-java)

WHAT YOU HAVE TO DO :

firstly check the eclipse.ini file to see if you have a path that is pointing to your jdk

it should look something like this

-vm

C:\Program Files\Java\blah\blah\blah\javaw.exe

if not then locate the jdk 7 javaw.exe file

sample :

C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe

paste -vm and the path below it into your eclipse.ini file

-vm

C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe

make sure that you type the above just before the -vmargs and after the OpenFile

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值