You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ryan Willoughby (JIRA)" <ji...@apache.org> on 2014/09/27 00:09:33 UTC
[jira] [Commented] (CB-7634) create should not fail when JAVA_HOME
is not set
[ https://issues.apache.org/jira/browse/CB-7634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14150086#comment-14150086 ]
Ryan Willoughby commented on CB-7634:
-------------------------------------
Right, on Ubuntu. To elaborate, the error is being thrown explicitly here: https://github.com/apache/cordova-android/blob/3.6.3/bin/lib/check_reqs.js#L107
You can follow the conditions in the block starting at line 88 to see how fails -- basically if you have java installed but aren't on a mac and don't have JAVA_HOME set then it errors out -- even though java config is all in order.
> create should not fail when JAVA_HOME is not set
> ------------------------------------------------
>
> Key: CB-7634
> URL: https://issues.apache.org/jira/browse/CB-7634
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CLI
> Affects Versions: 3.6.3
> Reporter: Ryan Willoughby
> Assignee: Joe Bowser
> Labels: android, cli, create
>
> the android create script errors out if JAVA_HOME is not set, and the script cannot derive it. But if the javac binary is resolvable (i.e. in the users PATH), then setting JAVA_HOME is unnecessary. Don't force users to set it.
> Error message:
> Could not find JAVA_HOME. Try setting the environment variable manually
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)