Error when open eclipse - MAC

Felix Putzenlechner picture Felix Putzenlechner · Jul 10, 2018 · Viewed 19.9k times · Source

I have installed eclipse on my iMac and when I try to open it, it gives me this error:

Failed to find a Main Class in 
"/Applications/Eclipse.app/Contents/MacOS//../Eclipse/ plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar".

On my MacBook Pro, everything works fine, but I have done nothing different.

I have checked other posts, but most of them refer to a windows OS. There was an answer which said that it can just open when everything is in an English folder and this is true for me!

Thanking you in advance!

Answer

Akin Williams picture Akin Williams · Jul 10, 2018

I came across this error after installing Eclipse PDT.

  1. Open your terminal and run the version command: java -version.

  2. If your java version is below 1.8, you will have to update your Java Runtime Environment to at least 1.8.0 by installing an updated JDK here.

  3. Then re-run the java version command and your version should be updated.
  4. You should now be able to install and run Eclipse.