How to fix JAVA_HOME invalid for cordova

I tried to reinstall the JDK several times - reset JAVA_HOME
I know that JAVA_HOME needs to be installed in C: \ Program Files \ Java \ jdk1.8.0_102
I know PATH must be installed in C: \ Program Files \ Java \ jdk1.8.0_102 \ bin
I am confused why you should set user variables and system variables
I set JAVA_HOME and PATH in both User vairables and system variables
I added "C: \ Users \ * \ AppData \ Local \ Android \ sdk \ tools" and "C : \ Users \ * \ AppData \ Local \ Android \ sdk \ platform-tools "System" Variables / Path "

Here is an image of most settings, I tried several things and can not find the problem, please

Settings and files

+4
4

, . , - , cmd . , ,

0

- " ".

JAVA_HOME ANDROID_HOME - " ".

-, , , , "", " ", :  

+2

. , , , paths .. !!! .

+1

Visual Studio. JAVA_HOME tools => options => tools apache cordova.

0

Source: https://habr.com/ru/post/1648774/


All Articles