‘java’ is not recognized as an internal or external command, operable program or batch file.
JAVA_HOME needs to be added to PATH variable. Add the whole path to the bin folder of your JAVA to the PATH variable following steps below…
Editing Path Variable:
- Right click on My Computer > Properties
- Select Advanced System Settings
- Select Advanced tab
- Click on Environment Variables
- Select Path under System Variables
- Click on Edit button
- In Variable value editor paste this at the end of the line
8. Click OK then OK again
9. Restart command prompt window, if not above change would not work.
Till Next Time