Search code examples
javaeclipsejvmexit-code

java was started but returned exit code


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!


Solution

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