# Issue description
```cordova run android --emulator``` is not working on java installed via brew 
(both oracle and openjdk versions).

# Reproduction
- On mac os 10.13.6:
- npm module cordova-android 7.0.0 (installed automatically by cordova platform 
add android)

### oracle
- brew install oracle_java
- cordova run android --emulator
- fix the JAVA_HOME envvar
- getting ```UnhandledPromiseRejectionWarning: CordovaError: Requirements check 
failed for JDK 1.8 or greater```

### openjdk
- brew tap brew tap AdoptOpenJDK/openjdk
- brew install adoptopenjdk-openjdk11
- fix the JAVA_HOME envvar
- getting ```UnhandledPromiseRejectionWarning: CordovaError: Requirements check 
failed for JDK 1.8 or greater```
- i know this is not brew cask, it's a third party brew tap, but as we speak 
the guys at adoptopenjdk are working on pull request to official brew cask for 
openjdk

# Investigation
As far as I discovered file check_reqs.js is responsible, it has problem 
recognising java10 and java11 because javac -version outputs to stdout instead 
of stderr. Also the regex.

[ Full content available at: 
https://github.com/apache/cordova-android/issues/510 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

Reply via email to