Java was running but exit code returned

When I started the eclipse, I first got this error dialog box: enter image description here

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

this solution asked me to pass this line to 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 box:

enter image description here

After this error I researched a lot and found these solutions sol1 , sol2 after which the error will not be fixed. Does anyone know why I came across this problem.

note: I know that this is some kind of recurring question, but all these recurring questions have not yet been resolved, so do not mark this as a duplicate!

+6
source share
3 answers

You are trying to run 64-bit Eclipse with 32-bit Java runtime. They must match.

+8
source

If you recently updated your java, please uninstall this update. This worked in my case. Hope this helps.

0
source

first delete the 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: advanced system setup

click: environment variable

choose: path

click: edit

copy to: your java path (jdk), e.g. [C: \ Program Files \ Java \ jdk1.7.0 \ bin]

paste in a dialog box for editing a user variable: for example. [; C: \ Program Files \ Java \ jdk1.7.0 \ bin .;]

OK / apply

then launch the eclipse and enjoy ..........

-1
source

All Articles