title: How to fix JAVA_HOME is invalid for cordova
body: <p>I have tried reinstalling the JDK a few times<br> reset the JAVA_HOME<br> I know that the JAVA_HOME needs to be set to C:\Program Files\Java\jdk1.8.0_102<br>I know PATH has to be set to C:\Program Files\Java\jdk1.8.0_102\bin<Br>
  I am confused as to why you have to set user variables and system variables<br>
  I set both the JAVA_HOME and the PATH in both User vairables and System variables<br>
  I have added "C:\Users\*\AppData\Local\Android\sdk\tools" and "C:\Users\*\AppData\Local\Android\sdk\platform-tools" System "Variables/Path"</p>
  
  <p>Here is an Image of most of the settings, I have tried a few things and cant seem to find the problem any help please</p>
  
  <p><a href="https://i.stack.imgur.com/bgJ0G.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bgJ0G.png" alt="Settings and Files"></a></p>