Are you getting below eclipse startup error?
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.
No Java virtual machine was found after searching the following locations: /Library/Java/JavaVirtualMachines/
I immediately correlated this error with the some JRE and JDK un-installation did last week 🙂
In order to avoid conflict I have decided to remove old Java versions 8 and java 9. I did it by simply
deleting 2 folders.
As my Eclipse’s
eclipse.ini file had Java 9 by default as a VM. It failed to startup with above error message.
How to find eclipse.ini file?
- Right click on
- Click on Show Package Contents
- Go to folder
- You will find
How to fix Eclipse Startup Error?
You have open eclipse.ini file and change
-vm path to correct JDK location.
In my case it’s
Now try restarting your eclipse by clicking eclipse.app icon and error should go away. Let me know if you face any issue starting Eclipse application.
Keep updating to latest Java version every 6 months. It’s my suggestion to get all latest features of Java and keep updating your project.
Join the Discussion
Share & leave us some comments on what you think about this topic or if you like to add something.