Question: how to fix java is not recognized as an internal or external command?
Answer: Check your javac path on Windows using Windows Explorer C:\Program Files\Java\jdk1. 7.0_02\bin and copy the address. Go to Control Panel. Environment Variables and Insert the address at the beginning of var. ...  Close your command prompt and reopen it,and write the code for compile and execution.