I am using Cordova 6.4.0 in Windows 7 OS, but I get this error once I tried to build the android version :
The Java Home variable is setted correctly to the JDK path, but I don't know why I am getting this issue. Any suggestions please ?
Install Java Development Kit (JDK) 7 or later.
In Linux (Debian/Ubuntu) this can be solved by selecting a Java 1.8 SDK in
sudo update-alternatives --config javac
Changing JAVA_HOME
env variable directly does not seem to have any effect.
EDIT: responding to the comments: This probably has something to do with the fact that new Debian (and apparently Ubuntu) Java installations through the package manager do not use the JAVA_HOME
enviroment variable to determine the location of the JRE. See this and this post for more info.
Uninstall all previous JDK including 1.8 Install JDK 1.8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With