JAVA_HOME is set to an invalid directory:

前端 未结 15 2104
梦毁少年i
梦毁少年i 2020-12-01 04:06

I have set JAVA_HOME in my system C:\\Program Files\\Java\\jdk1.8.0_ 131\\bin; and I am trying to run cordova command( cordova build ) on command p

相关标签:
15条回答
  • 2020-12-01 04:46

    You should set it with C:\Program Files\Java\jdk1.8.0_12.

    \bin is not required.

    0 讨论(0)
  • 2020-12-01 04:51

    set JAVA_HOME as C:\Program Files\Java\jdk1.8.0_172

    do not use semicolon ";" with above JAVA_HOME value

    To verify that it is correctly set, Go to command prompt check for C:.......>sdkmanager --list

    a complete list will appear that will let you now that it is successfully saved.

    else it will show error that JAVA_HOME path is not correctly set.

    0 讨论(0)
  • 2020-12-01 04:51

    After isntalling jdk please restart your system this works for me

    0 讨论(0)
提交回复
热议问题