
Notepad or Word-pad and search if it contains the JDK installation directory or JAVA_HOME.

The PATH output that you will receive, just copy it into your text editor e.g. Just follow the steps given below to resolve your problem:ġ) Just click on the Start button and open the command prompt and then type cmd on the run window.Ģ) Type echo %PATH%, it will now show you all the directories available in the PATH environment variable. Until your add Java into your system's PATH variable, you cannot compile and run Java program. In order to solve this error, you need to add JAVA_HOME/bin folder in your machine's PATH. It means that javac.exe executable file, which exists in the bin directory of the JDK installation folder is not added to the PATH environment variable. javac Helloworld.java and your PATH is not set properly.

This error occurs usually when you try to compile a Java source file using javac command e.g.
