[jira] [Commented] (CB-7634) create should not fail when JAVA_HOME is not set

2014-10-02 Thread Asier Iturralde Sarasola (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14156384#comment-14156384
 ] 

Asier Iturralde Sarasola commented on CB-7634:
--

I have just updated from Cordova 3.5.1 to 3.6.3 using sudo npm update -g 
cordova in Linux Mint 17 (like Ubuntu 14.04) and now I get this error when I 
try to run cordova platform update android.

I added this line to my bashrc file and now it works:
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

Is it correct that way? Is there a better way?


 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: Andrew Grieve
  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)


[jira] [Commented] (CB-7281) cordova plugin add issues nonsense EACCESS error

2014-08-29 Thread Asier Iturralde Sarasola (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14115125#comment-14115125
 ] 

Asier Iturralde Sarasola commented on CB-7281:
--

Me too, I used sudo when updating cordova: sudo npm update -g cordova

 cordova plugin add issues nonsense EACCESS error
 --

 Key: CB-7281
 URL: https://issues.apache.org/jira/browse/CB-7281
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
 Environment: ubuntu 14.04
Reporter: teo

 On a freshly created test application targeted at android, which works fine.
 I ran:
 $ cordova plugin add nl.sylvain.cordova.osc
 Fetching plugin nl.sylvain.cordova.osc via plugin registry
 Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
 That doesn't make sense, as /home/teo is my home directory (I was running the 
 above command as teo). There's no reason why that mkdir command should get 
 an access denied error (if that's what EACCESS means).
 This worked:
 $ sudo cordova plugin add nl.sylvain.cordova.osc
 however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-7281) cordova plugin add issues nonsense EACCESS error

2014-08-28 Thread Asier Iturralde Sarasola (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14113561#comment-14113561
 ] 

Asier Iturralde Sarasola commented on CB-7281:
--

I have the same issue using cordova 3.5.0-0.2.7.

I solved the problem setting my user as the owner of the folder 
/home/asier/tmp/, previously the owner was root.

 cordova plugin add issues nonsense EACCESS error
 --

 Key: CB-7281
 URL: https://issues.apache.org/jira/browse/CB-7281
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
 Environment: ubuntu 14.04
Reporter: teo

 On a freshly created test application targeted at android, which works fine.
 I ran:
 $ cordova plugin add nl.sylvain.cordova.osc
 Fetching plugin nl.sylvain.cordova.osc via plugin registry
 Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
 That doesn't make sense, as /home/teo is my home directory (I was running the 
 above command as teo). There's no reason why that mkdir command should get 
 an access denied error (if that's what EACCESS means).
 This worked:
 $ sudo cordova plugin add nl.sylvain.cordova.osc
 however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)