Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: No Java virtual machine was found after searching the following locations: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/

Tags:

java

eclipse

I opened Eclipse:

Open Eclipse

I got this Error:

Eclipse Error

My OS:

Mac OS

Text:

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/jdk1.8.0_121.jdk/Contents/Home/jre/bin

like image 988
Michael Lafayette Avatar asked Dec 23 '22 16:12

Michael Lafayette


2 Answers

Change "jdk1.8.0_121" to "jdk1.8.0_131" in eclipse.ini

eclipse.ini

like image 135
Michael Lafayette Avatar answered May 14 '23 17:05

Michael Lafayette


In something version of eclipse the path for eclipse.ini: /Eclipse.app/Contents/Eclipse/eclipse.ini

put this:

/Library/Java/JavaVirtualMachines/VERSION.jdk/Contents/Home/jre/bin/
like image 39
Maicoly Morocho Avatar answered May 14 '23 17:05

Maicoly Morocho