[SOLVED] No Java virtual machine was found after searching the following locations:

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under
CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.


A Java Run Time 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: H:Important Softwareeclipsejrebinjavaw.exe java.exe in your current path

These are shown while I am trying to start eclipse. But some days ago I have worked with eclipse fine. and I have checked java path in my system and environment variable. All are okay. Hence eclipse does not starting. I have restarted my pc also.

One thing I have to mention that javac command did not work while I was trying to compile my java code from command promt. Then I used this command to set path that is set path = C:Program FilesJavajdk-9.0.4. After that javac command was working fine. But now this problem occurs. eclipse did not starting.

And the main problem is my system is finding the jdk/jre in H drive where I put eclipse IDE but not the jdk/jre. I don’t understand what’s happening.

enter image description here

enter image description here


you have to all set classpath

Follow this In user Environment variable set

VariableName  variableValue
JAVA_HOME     jdkpath( example :C:Program FilesJavajdk1.8.0_151)

And in system variable

Add path

path       %JAVA_HOME%bin;

Now you can work in all IDEs

Answered By – Dhanasekaran Don

people found this article helpful. What about you?