0

So I have been learning basic Java on this eclipse: "eclipse-inst-win64" and on this JDK version "jdk-12.0.2_windows-x64_bin" and everything works fine. So, I started a new course on spring and the teacher told us to download this version of eclipse: "Eclipse IDE for Enterprise Java Developers". I downloaded this file "eclipse-jee-2019-12-R-win32-x86_64" and when I extract the zip file and run the Eclipse application, this error pops up which is in the screenshot picture.Error when running eclipse

It worked fine for the instructor in the video.

mr3oh5
  • 33
  • 8
  • look for eclipse.ini file and you can modify the java version in that file. – Ros5292 Jan 06 '20 at 15:50
  • Does this answer your question? [Can't start Eclipse - Java was started but returned exit code=13](https://stackoverflow.com/questions/11461607/cant-start-eclipse-java-was-started-but-returned-exit-code-13) – MSallal Jan 06 '20 at 15:51
  • You need to see which version of operating system you have, 64 bit or 32 bit. Then you download the corresponding version of JDK and eclipse. – M.Mas. Jan 06 '20 at 16:03
  • My operating system is 64 bit and I've downloaded both the eclipse and jdk in 64 bit – mr3oh5 Jan 06 '20 at 16:10
  • Thanks for the website it was helpful and it worked finally. – mr3oh5 Jan 06 '20 at 17:22

2 Answers2

0

You are running a 64-bit Eclipse on a 32-bit Java (evidenced by the "Program Files (x86)" in the path). That won't work. You need to run Eclipse with a 64-bit Java.

Here is some documentation on how you can configure this: https://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example

dsh
  • 11,380
  • 3
  • 27
  • 48
  • I don't understand, the Java I downloaded is 64 bit. – mr3oh5 Jan 06 '20 at 15:49
  • I can't speak to what you have downloaded, but the error message shows that you were running a Java from "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaw.exe". The "Program Files (x86)" directory is for 32-bit programs. – dsh Jan 06 '20 at 18:16
0

Exit code 13 shows that you have changed the java version. The change can be a switch from 64 to 32 bit java or vice versa. Also check your JAVA_HOME to make sure it points to the correct one as well.

RV.
  • 2,128
  • 2
  • 20
  • 39