java was started but returned exit code

2020-06-16 09:23发布

when i was starting eclipse, i first got this error dialog: enter image description here

After this error,i researched and found a solution here.

this solution asked me to give this line in eclipse.ini:

-vm
C:\Program Files (x86)\Java\jdk1.7.0_25\bin\javaw.exe 

but after adding this, i found another kind of error dialog:

enter image description here

after this error,i researched alot, and found these solutions sol1 ,sol2 after following these, error is not resolved. does anyone know why i am facing this problem.

note: i know this is kind of duplicate question, but all those duplicate question are not resolved yet, so do not mark this as duplicate!

3条回答
冷血范
2楼-- · 2020-06-16 10:02

If you have recently updated your java then please uninstall that update. It worked in my case. Hope it will help.

查看更多
家丑人穷心不美
3楼-- · 2020-06-16 10:06

first of all remove line in eclipse.ini:

-vm
C:\Program Files (x86)\Java\jdk1.7.0_25\bin\javaw.exe 

then

right click::my computer

select: properties

click on : advanced system setting

click on: environments variable

select: path

click: edit

copy on : your java(jdk) path eg.[C:\Program Files\Java\jdk1.7.0\bin]

paste on edit user variable dialog box: eg. [;C:\Program Files\Java\jdk1.7.0\bin.;]

ok/apply

then start ur eclipse and enjoy..........

查看更多
祖国的老花朵
4楼-- · 2020-06-16 10:12

You're trying to run a 64-bit Eclipse with a 32-bit Java Runtime. They have to match.

查看更多
登录 后发表回答