java.exe' is not recognized as an internal or external command, code example

Example: 'Java' is not recognized as an internal or external command

1. downlaod java. (just search java)
2. download JDK (again just search JDK)
if that didn't work go to where java is installed and add javapath to path. 
(it is usually located at C:\Program Files\Common Files\Oracle\Java\javapath )
Adding to path:
1. press widows key and type: system environment variables and press enter
2. press enviroment variables
3. under system variables find "Path" and double click it.
4. click new and paste the path to javapath folder

Tags:

Java Example