'Java' is not recognized as an internal or external command
Right click on My Computer Select Properties Select Advanced System Settings Select Advanced tab Select Environment Variables Select Path under System Variables Click on Edit button In Variable value editor paste this at the start of the line C:\Program Files\Java\jdk-10.0.2\bin; Click Ok then Ok again Restart command prompt otherwise it won't see the change to the path variable Type java -version in command prompt.