Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when open eclipse - MAC

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!

like image 471
Felix Putzenlechner Avatar asked Jul 10 '18 09:07

Felix Putzenlechner


1 Answers

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.
like image 57
Akin Williams Avatar answered Oct 15 '22 10:10

Akin Williams