feda alshahwan wrote:Also I did the following but I got the following error
Did you do what Ankit told you to do?
Your OS has to know where to find the javac(ie the java compiler) and java (interpreter) to compile and run your commands.
If you are using windows, you need to set the environment variables or at least set the path as Ankit said.