it's because your pc environment variables and java most likely, make sure you have java installed and you have to setup your environment.
PC > Properties > Advance System Settings > Environment Settings >
under User and System Variables edit the "Path" and add the full path to your java directory bin folder that contains java.exe
(don't use my example path it has to point to your java path, you might not have your java installed to this path)Code:ex: C:\Program Files\Java\jre1.8.0_111\bin
not every one runs into this issue, but i ran into this issue on my laptop which is outdated.

