[Mac] To open Eclipse you need to install the legacy java se 6 runtime

I recently upgraded my Mac Computer from version 10.10 Yosemite to 10.11 EL Capitan, trying to Open eclipse gave me the following error,

To open "Eclipse" you need to install the legacy java 6 runtime. Click "More info.." to visit the legacy Java 6 download website.
To open eclipse you need to install the legacy java 6 runtime.png
To open eclipse you need to install the legacy java 6 runtime

I already had Java 8 versions installed on my system and did not want to use Java 1.6. There are various ways you can fix this issue, loads of troubleshooting steps available on StackExchange apple and StackOverflow forums, one of them is to edit the plist file of the eclipse, but the simplest way is to download Java 8 for Mac from the website and install it again,

  1. Click on Eclipse launch icon,
  2. You will be prompted with the Error with the option "More Info..", Click on it, will lead you to https://support.apple.com/kb/DL1572?locale=en_US
  3. Click on Download button and Install the javaforosx.dmg
  4. Now try and open eclipse you should not get any errors!!
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.