I’ve used the Eclipse editor in the past but not since I started using a Mac in 2014. I’ve tried several times to to get Eclipse running on my MacBook but failed. Eclipse would complain that my version of Java was too old. I would attempt to upgrade Java but it never worked.
For me upgrading Java required turning OFF the macOS System Integrity Protection (SIP).
System Integrity Protection (SIP)
How do you turn off SIP?
- Restart in macOS Recovery
- Restart your Mac and when the power comes back hold down Ctrl-R until the Apple icon displays. When you see the Apple icon, you can release the keys.
- After your macOS loads you will have a window with Utilities and other options in the menu. From the Utilities menu select Terminal.
- From the Terminal window, run this command:
- Restart your Mac and re-run your Java upgrade and JDK upgrade.
- When your done upgrading, you want to re-enable System Integrity Protection (SIP)
- Restart your Mac and get back into macOS Recovery
- Back in the Terminal window, run this command:
Back to Eclipse
Now that Java is updated you can re-run your Eclipse installation and it shouldn’t complain about Java.