Error: Failed to run "javac -version", make sure that you have a JDK installed. You can get it from: http://www.oracle.com/technetwork/java/javase/downloads. Your JAVA_HOME is invalid: C:\Program Files\Java\jdk1.8.0_152;
[ERROR] An error occurred while running cordova run android (exit code 1)
My JAVA_HOME : C:\Program Files\Java\jdk1.8.0_152;C:\Program Files\Java\jdk1.8.0_152\bin;
ANDROID_HOME: C:\Users\Felipe\AppData\Local\Android\sdk;
Path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\nodejs\;C:\apache-ant-1.9.6\bin;%JAVA_HOME%;C:\Users\Felipe\AppData\Local\Android\sdk\build-tools\27.0.0;C:\Users\Felipe\AppData\Local\Android\sdk\tools;
Any idea why returns me this error when i try to use ionic cordova run android?
JAVA_HOME
should contain just one entry, pointing to the root directory of the JRE/JDK. In your case,JAVA_HOME
should beC:\Program Files\Java\jdk1.8.0_152
– Croaky