Search code examples
cordovavisual-studio-2015java-home

Setting JAVA_HOME so Cordova in Visual Studio picks it up


I'm puling my hair out over this one. I can't get Visual Studio 2015 to reliably pick up my JAVA_HOME directory. Does anyone know how I can fix this? I have tried clearing the cordova cache, re-starting the pc and none of it seems to work.

Screen shot of system vars


Solution

  • I can't get Visual Studio 2015 to reliably pick up my JAVA_HOME directory.

    You can override JAVA_HOME of VS by Tools->options->Tools for Apache Cordova->Environment Variable Overrides:

    enter image description here