I have resolved this problem by adding or changing variables in environment variables.
Go to Win7 -> My Computer - > Properties - > Advanced system settings -> environment Variables
- If there is no variable JAVA_HOME, add it with value of variable, with route to folder where your JDK installed, for examle C:\Program Files\Java\jdk-11.0.2
- If there is no variable PATH or it have another value, change the value of variable to C:\Program Files\Java\jdk-11.0.2\bin or add variable PATH with this value
Good Luck