You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Wojciech Trocki (JIRA)" <ji...@apache.org> on 2018/05/24 20:02:00 UTC
[jira] [Comment Edited] (CB-14101) check_reqs.js does not recognize
java version
[ https://issues.apache.org/jira/browse/CB-14101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16489667#comment-16489667 ]
Wojciech Trocki edited comment on CB-14101 at 5/24/18 8:01 PM:
---------------------------------------------------------------
I'm not 100% sure but I think that only java 1.8 is currently supported.
See: https://cordova.apache.org/docs/en/latest/guide/platforms/android/
EDIT: Found numerous comments on the list that suggest that only 1.8 is supported.
was (Author: wtrocki):
I'm not 100% sure but I think that only java 1.8 is currently supported.
See: https://cordova.apache.org/docs/en/latest/guide/platforms/android/
[~jcesarmobile] or any core contributor can confirm?
> check_reqs.js does not recognize java version
> ---------------------------------------------
>
> Key: CB-14101
> URL: https://issues.apache.org/jira/browse/CB-14101
> Project: Apache Cordova
> Issue Type: Bug
> Affects Versions: 8.0.0
> Environment: OS = Arch Linux
> JAVA = javac 9.0.4
> CORDOVA = 8.0.0
> Reporter: Arne Simon
> Priority: Major
>
> The java version i am using produces following output.
> {code}
> > javac -version
> javac 9.0.4
> {code}
>
> The error happens in two points:
> {code:java}
> // We use tryCommand with catchStderr = true, because
> // javac writes version info to stderr instead of stdout
> return tryCommand('javac -version', msg, true).then(function (output) {
> // Let's check for at least Java 8, and keep it future proof so we can support Java 10
> var match = /javac ((?:1\.)(?:[8-9]\.)(?:\d+))|((?:1\.)(?:[1-9]\d+\.)(?:\d+))/i.exec(output);
> return match && match[1];
> });{code}
> 1. _platforms/android/cordova/lib/check_reqs.js:218_
> The comment states that javac prints to stderr, this is not true on my system it prints to stdout!
> 2. _platforms/android/cordova/lib/check_reqs.js:220_
> The regex only looks after version numbers like 1.8 or 1.9 or 10, but the version number my java version prints is _9.0.4_
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org