Eclipse : No Java virtual machine was found after searching the following location
Test on:
- Macbook Pro 13" Retina
- OS X El Capitan
- Eclipse 4.6
- Java JDK 8 (1.8.0_102 and 1.8.0_112)
I have found this problem after i'm try to remove java jdk under path "/Library/Java/JavaVirtualMachines" refer to folder "jdk1.8.0_102.jdk" to increase more space on my SSD then launch Eclipse this error occurs and cannot open Eclipse, so the first thing i'm try to download which version base on an error from this link.
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
by the name "Java SE Development Kit 8u102", it's surely Eclipse can be launch again.
But take a look again, i have "/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk", then go to Eclipse.app where you keep it. I have it here "/Users/poraweeraksasin/eclipse/android-neon". Right-click on Eclipse.app and choose "Show Package Contents" then go to "Content/Eclipse", you should see "eclipse.ini", open it with your text editor (eg. i'm use Atom).
Let's find this line.
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/bin
Test on:
- Macbook Pro 13" Retina
- OS X El Capitan
- Eclipse 4.6
- Java JDK 8 (1.8.0_102 and 1.8.0_112)
I have found this problem after i'm try to remove java jdk under path "/Library/Java/JavaVirtualMachines" refer to folder "jdk1.8.0_102.jdk" to increase more space on my SSD then launch Eclipse this error occurs and cannot open Eclipse, so the first thing i'm try to download which version base on an error from this link.
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
by the name "Java SE Development Kit 8u102", it's surely Eclipse can be launch again.
But take a look again, i have "/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk", then go to Eclipse.app where you keep it. I have it here "/Users/poraweeraksasin/eclipse/android-neon". Right-click on Eclipse.app and choose "Show Package Contents" then go to "Content/Eclipse", you should see "eclipse.ini", open it with your text editor (eg. i'm use Atom).
Let's find this line.
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/bin
Change to version you had and save it.
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/bin


Comments
Post a Comment