I am on Ubuntu 19.04
I followed this Cordova guide Cordova documentation
But when I write "cordova build" in terminal, I get the following output:
Failed to find 'JAVA_HOME' environment variable. Try setting it manually.
I then do "nano ~/.bashrc" to see that I have this:
export JAVA_HOME="/usr/lib/jvm/jdk1.8.0_241"
export PATH="$PATH:$JAVA_HOME/bin"
This is also the jdk that I use in IntelliJ, with no issues at all.
if I type "cordova requirements", I get the following output
Requirements check results for android:
Java JDK: installed 11.0.7
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
Some of requirements check failed
So why does it fail to find JAVA_HOME ?