{ "id": "63812", "key": "TIMOB-3180", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15709", "description": "2013 Sprint 23 Core", "name": "2013 Sprint 23 Core", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15719", "description": "2013 Sprint 26", "name": "2013 Sprint 26", "archived": true, "released": true, "releaseDate": "2014-01-03" }, { "id": "15721", "description": "2013 Sprint 26 Core", "name": "2013 Sprint 26 Core", "archived": true, "released": true, "releaseDate": "2014-01-03" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-19T18:27:02.000+0000", "created": "2011-04-15T03:38:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "androidbuild", "cb-verified", "core" ], "versions": [], "issuelinks": [ { "id": "31415", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "119164", "key": "TIMOB-14979", "fields": { "summary": "Android Build: Build Java files and run dexer", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-12-19T19:04:11.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "Googled and found that spaces in the Java paths would create complications: http://developer.appcelerator.com/question/34701/error-jdk-version-javac-is-not-recognized-as-an-internal-or-external-command-testing-on-android\r\n\r\nWe moved the JDK location to C:\\Java\\java-jdk-folder and it appeared to work fine after updating JAVA_HOME and the Path environment variables to the new location.", "attachment": [], "flagged": false, "summary": "Android: JAVA_HOME not recognized when launching some Android applications", "creator": { "name": "jonathanknapp", "key": "jonathanknapp", "displayName": "Jonathan Knapp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jonathanknapp", "key": "jonathanknapp", "displayName": "Jonathan Knapp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130240", "author": { "name": "jonathanknapp", "key": "jonathanknapp", "displayName": "Jonathan Knapp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This problem appeared when compiling the app from within\nTitanium, so I'm guessing it doesn't play nice with path names with\nspaces in them.

{html}", "updateAuthor": { "name": "jonathanknapp", "key": "jonathanknapp", "displayName": "Jonathan Knapp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:57.000+0000", "updated": "2011-04-15T03:38:57.000+0000" }, { "id": "278997", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4930", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-11T19:52:59.000+0000", "updated": "2013-11-11T19:52:59.000+0000" }, { "id": "279038", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, try setting JAVA_HOME to nothing, a path that is not the Java JDK home dir, and a path that is the Java JDK home dir. For each JAVA_HOME value, do a Android device build which will encrypt the JS and trigger \"titanium_prep\".", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-11T22:37:24.000+0000", "updated": "2013-11-11T22:37:24.000+0000" }, { "id": "285088", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening based on conversation with [~cbarber].\n\nJAVA_HOME if set in incorrect location will throw an error.\nJAVA_HOME if set in correct location will build successfully.\nJAVA_HOME if not set at all will throw an error.\n\n{code}C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\longjohn\\dist\\longjohn.js:184\n throw e;\n ^\nTypeError: Arguments to path.resolve must be strings\n at exports.resolve (path.js:116:15)\n at Object.realpathSync (fs.js:1207:18)\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\jdk.js:108:28\n at Array.forEach (native)\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\jdk.js:107:29\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:530:17\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:116:25\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:24:16\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:527:21\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\jdk.js:98:6\n---------------------------------------------\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:693:21\n at Array.forEach (native)\n at _each (C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:32:24)\n at _insert (C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:678:11)\n at q.push (C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:705:15)\n at findExecutable (C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\subprocess.js:113:8)\n at tasks.(anonymous function) (C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\jdk.js:97:5)\n at C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\async\\lib\\async.js:521:25{code}", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-18T22:23:58.000+0000", "updated": "2013-12-18T22:23:58.000+0000" }, { "id": "285090", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "node-appc master pull request: https://github.com/appcelerator/node-appc/pull/77\nnode-appc 3.2.x pull request: https://github.com/appcelerator/node-appc/pull/79", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-18T22:27:19.000+0000", "updated": "2013-12-18T22:27:19.000+0000" }, { "id": "285195", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Uninstalled CLI 3.2.0-cr3 & reinstalled it but still can see the issue. I think it does not have the new changes in node-appc which fixes this issue.\r\nReopening.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201312181652\r\nTi SDK : 3.2.0.v20131218153242\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0-cr2\t\r\nCLI - 3.2.0-cr3", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-19T18:18:00.000+0000", "updated": "2013-12-19T18:20:39.000+0000" }, { "id": "285201", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Lokesh, you have to install the Titanium CLI from git:\n\n{code}\nsudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-19T18:27:58.000+0000", "updated": "2013-12-19T18:27:58.000+0000" }, { "id": "285220", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pulled CLI from {code}sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X{code} & could not reproduce the issue.\r\ntested by setting:\r\nJAVA_HOME to invalid path\r\nJAVA_HOME to none\r\nIn both cases the jdk was successfully detected.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nTi sdk : 3.2.0.v20131218153242\r\nAppc studio : 3.2.0.201312181652\r\nCLI : from sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-19T19:04:11.000+0000", "updated": "2013-12-19T19:04:11.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }