2

I was using java 32 bit and eclipse juno 32 bit till yesterday.Today i installed java 64 and eclipse luna 64 bit on my computer.My OS is Windows 7 64bit.

I am getting this error when i try to open eclipse.enter image description here

I have looked at many solitions but none of them worked.

My console when asked for java version shows. enter image description here

And my

JAVA_HOME is set to C:\Program Files (x86)\Java\jdk1.7.0_05

JDK_HOME is set to C:\Program Files (x86)\Java\jdk1.7.0_05

And the Java folder in programs(X86) folder is as enter image description here

The version shown in console is 1.7.0_79 , but the version in the error message is not the same.Where am i going wrong?

user3290349
  • 919
  • 1
  • 7
  • 15
  • possible duplicate: http://stackoverflow.com/questions/27019786/eclipse-java-was-started-but-returned-error-code-13 – davidgiga1993 May 12 '15 at 07:35
  • another possible duplicate target is https://stackoverflow.com/questions/4945178/cannot-run-eclipse-jvm-terminated-exit-code-13?lq=1 – Oleg Estekhin May 12 '15 at 07:41
  • and another with even more votes and answers is https://stackoverflow.com/questions/11461607/cant-start-eclipse-java-was-started-but-returned-exit-code-13?rq=1 – Oleg Estekhin May 12 '15 at 07:42

3 Answers3

2

Your JAVA_HOME and JDK_HOME is still pointing to the 32bit version. You must change them to the 64 bit version or edit your eclipse.ini with the following command:

-vm [path to 64 bit jdk]
davidgiga1993
  • 1,676
  • 12
  • 25
  • The -vm parameter? Go to your eclipse directory and edit the "eclipse.ini" file. More information can be found here: https://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example – davidgiga1993 May 12 '15 at 10:52
1

Programs in Program Fies (x86) are 32 bits version Change your JAVA_HOMEand JDK_HOME ( you might aswell check PATH) to point to your 64 bit installation (should be c:\Program Files\Java)

flafoux
  • 1,950
  • 1
  • 10
  • 13
0

The problem is you are try to launch 64bit eclipse on 32bit jre version.

Open eclipse.ini file and set/update following:

-vm
 <Your 64bit java bin path>/javaw.exe

For more details see eclipse.ini

Sumit Singh
  • 23,530
  • 8
  • 71
  • 99