Setting JAVA_HOME so Cordova in Visual Studio picks it up

1k Views Asked by At

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

1

There are 1 best solutions below

2
On BEST ANSWER

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