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
Please remove /bin and even semi colon ; from JAVA_HOME to resolve.
Remove the \bin
, and also remove the ;
at the end. After restart the cmd and run.
You need to set with only C:\Program Files\Java\jdk1.8.0_12.
And check with using new cmd. It will be updated
JAVA_HOME should be C:\Program Files\Java\jdk1.8.0_172
don't include semi-colon(;) or bin in path. Any jdk version above 7 will work. Also, you need to re-start the cmd
i think you need to remove the ';' from the end of the java path.
First try removing the '\bin' from the path and set the home directory JAVA_HOME as below: JAVA_HOME : C:\Program Files\Java\jdk1.8.0_131
Second Update System PATH:
Third restart your docker.
Refer to the link for setting the java path in windows.