Java – eclipse installed but cannot start java returned exit-code = 1

eclipseexit-codejava

I recently installed eclipse-dsl-juno-SR1-win32-x86_64 and after extracting the files, as I started running Eclipse it gave me the following error :

Java was started but returned exit code=1 (required java version=1.5)

I checked the reason for this and also tried reinstalling as well as solutions suggested by other discussion forums, but to no avail.

I have installed

  • Eclipse IDE for Java and DSL Developers : eclipse-dsl-juno-SR1-win32-x86_64 under the Eclipse Juno SR1 packages AND
  • JDK 1.7.0_11 (x64)

I have linked my Environment Variables up correctly and tried to compile a Java file through cmd and have succeeded.

I tried running the following in cmd: -vm "mypath\jdk1.7.0_11\jre\bin" command as forums suggested

as well as other paths -vm "mypath\jdk1.7.0_11\bin" -vm "mypath\jdk1.7.0_11\jre\bin\javaw.exe" even -vm "mypath\jre6\bin" out of desperation to no avail.

Please help me out with this. I'm stuck 🙁

Best Answer

What worked for me was to set -vm to point to jvm.dll instead of java.exe or javaw.exe

-vm C:your_java\jre7\bin\client\jvm.dll

It seems a bug with Java 1.7. If you go back to Java 1.6 the problem seems to disappear as well.

Eclipse: Java was started but returned exit code -1073741571