I'm using windows 10 here , I've created the system variable JAVA_HOME with the correct path to the JDK folder ( not the JRE ) like this :
C:\Program Files (x86)\Java\jdk1.8.0_77
I've tried to add another user variable too with the same path and the JAVA_HOME but it doesn't seem to work , any idea what it could be ?