Most likely you haven't set the path properly or you skipped that step. When running the javac command, your system needs to know where to find the programs.

Look at this installation guide and...