Requirements check failed for JDK 1.8 on Mac

#1

Hi there, I get this error anytime I try to run my app on an android emulator or device.

From looking it up online its likely something to do with my java versioning… but on my Mac I’m really not sure how to resolve.

I’ve now downloaded a correct java version (I think), but I’m not sure how to point JAVA_HOME to it.
Ive also tried deleting Java and reinstalling but cordova seems to still be pointing at the wrong version.

Please help as I now cannot continue the development of an app :frowning:

Many thanks!

#2

Did you find a solution?

#3

Hi Sam,

Yeah after some time I found that I needed to set the JAVA_HOME variable like so…

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home"

This seems to have sorted the problem for me at least.

Thanks