Did you set the JAVA_HOME environment variable . It should points at the base directory where you have installed the JDK ?You should also add JAVA_HOME/bin to your PATH environment variable, so that the java command is recognized and executed.