{ "id": "60648", "key": "TIMOB-16", "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": "11209", "name": "Release 0.5", "archived": true, "released": true, "releaseDate": "2009-07-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:50:07.000+0000", "created": "2011-04-15T02:22:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "developer" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:50:07.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" } ], "description": "{html}

Assigned to \nTender issue #11. As reported in Tender:

\n
\n

Just got my environment all set up with Android, when I attempt\nto launch a my newly created mobile android app I get:

\n

Launching Android emulator...one moment Traceback (most recent\ncall last): File\n\"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\0.4.2\\android\\builder.py\",\nline 315, in s.run_emulator() File\n\"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\0.4.2\\android\\builder.py\",\nline 69, in run_emulator \"':d '\" File\n\"C:\\ProgramData\\Titanium\\modules\\win32\\python\\0.4.0\\lib\\subprocess.py\",\nline 594, in init errread, errwrite) File\n\"C:\\ProgramData\\Titanium\\modules\\win32\\python\\0.4.0\\lib\\subprocess.py\",\nline 822, in _execute_child startupinfo) WindowsError: [Error 3]\nThe system cannot find the path specified

\n

I don't have any code yet - just tried to launch a blank\napplication - which I did earlier for a desktop app and it ran.

\n
{html}", "attachment": [ { "id": "17836", "filename": "prereq.py", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:31.000+0000", "size": 1475, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Via Tender: Newby - Error when launching android application", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122647", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've tracked this down (on Window's XP) to a failure in javac\nbeing run. If I change run(['javac','-version']) to\nrun(['cmd.exe','/C','javac','-version']) in android/prereq.py javac\nis correctly detected if the jdk is on the path.

\n

If you run prereq.py from the command line, it correctly detects\njava as well.

\n

Looking at the python docs POpen in 2.5\nuses CreateProcess under the covers.

\n

On Windows: the Popen class uses CreateProcess() to execute the\nchild program, which operates on strings. If args is a sequence, it\nwill be converted to a string using the list2cmdline method. Please\nnote that not all MS Windows applications interpret the command\nline the same way: list2cmdline is designed for applications using\nthe same rules as the MS C runtime.

\n

From MSDN.aspx)

\n

The string can specify the full path and file name of the module\nto execute or it can specify a partial name. In the case of a\npartial name, the function uses the current drive and current\ndirectory to complete the specification. The function will\nnot use the search path. This parameter must include the\nfile name extension; no default extension is assumed.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:31.000+0000", "updated": "2011-04-15T02:22:31.000+0000" }, { "id": "122648", "author": { "name": "richards.justin(atgmail)", "key": "richards.justin(atgmail)", "displayName": "richards.justin (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@Don

\n

I am running on vista and getting this error as well.
\nI tried to make the change you specified but no dice.

\n

Do I downloaded java but is there something I am missing?

{html}", "updateAuthor": { "name": "richards.justin(atgmail)", "key": "richards.justin(atgmail)", "displayName": "richards.justin (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:32.000+0000", "updated": "2011-04-15T02:22:32.000+0000" }, { "id": "122649", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I will be working on the fix and testing XP, Vista, and Windows\n7. If it is easily patchable, I'll update instructions.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:32.000+0000", "updated": "2011-04-15T02:22:32.000+0000" }, { "id": "122650", "author": { "name": "richards.justin(atgmail)", "key": "richards.justin(atgmail)", "displayName": "richards.justin (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sounds Great.
\nThis error has me stopped in my tracks.

\n

Thanks Don.

{html}", "updateAuthor": { "name": "richards.justin(atgmail)", "key": "richards.justin(atgmail)", "displayName": "richards.justin (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:32.000+0000", "updated": "2011-04-15T02:22:32.000+0000" }, { "id": "122651", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've attached a replacement prereq.py that should work on\n0.4.2.

\n\n

If you still have an issue, then you might need to follow the\nclean up steps in \nAndroid Emulator Stopped Working

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:32.000+0000", "updated": "2011-04-15T02:22:32.000+0000" }, { "id": "122652", "author": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hello Don,

\n

I am on Windows XP and using Titanium Mobile 0.4.2, i have\nreplaced the prereq.py you supplied above but I am still getting\nthis error.

\n

Launching Android emulator...one moment
\nTraceback (most recent call last):
\nFile \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\\mobilesdk\\win32\\0.4.2\\android\\builder.py\", line 315,\nin
\ns.run_emulator()
\nFile \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\\mobilesdk\\win32\\0.4.2\\android\\builder.py\", line 69,\nin run_emulator
\n\"':d '\" File \"C:\\Documents and Settings\\All\nUsers\\Application\nData\\Titanium\\modules\\win32\\python\\0.4.4\\lib\\subprocess.py\", line\n594, in init
\nerrread, errwrite)
\nFile \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\\modules\\win32\\python\\0.4.4\\lib\\subprocess.py\", line\n822, in _execute_child
\nstartupinfo)
\nWindowsError: [Error 3] The system cannot find the path\nspecified

\n

Any Ideas?

{html}", "updateAuthor": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:33.000+0000", "updated": "2011-04-15T02:22:33.000+0000" }, { "id": "122653", "author": { "name": "richardvenneman", "key": "richardvenneman", "displayName": "Richard Venneman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This problems also occurs here. Even after replacing the\nprereq.py.

{html}", "updateAuthor": { "name": "richardvenneman", "key": "richardvenneman", "displayName": "Richard Venneman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:33.000+0000", "updated": "2011-04-15T02:22:33.000+0000" }, { "id": "122654", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Troy & Richard,

\n

Did you also do all the steps in \nAndroid Emulator Stopped Working

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:33.000+0000", "updated": "2011-04-15T02:22:33.000+0000" }, { "id": "122655", "author": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Don,

\n

I am running windows xp. Which sqlite db do I need to clear? I\nam assuming it is for the Titanium Developer but I cannot seem to\nfind where this is on windows.

{html}", "updateAuthor": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:34.000+0000", "updated": "2011-04-15T02:22:34.000+0000" }, { "id": "122656", "author": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Don,

\n

I upgraded to 0.5.0 and still get this error on Titanium\nDeveloper running on XP when I launch the android emulator.

\n

Launching Android emulator...one moment
\nTraceback (most recent call last):
\nFile \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\\mobilesdk\\win32\\0.5.0\\android\\builder.py\", line 315,\nin
\ns.run_emulator()
\nFile \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\\mobilesdk\\win32\\0.5.0\\android\\builder.py\", line 69,\nin run_emulator
\n\"':d '\" File \"C:\\Documents and Settings\\All\nUsers\\Application\nData\\Titanium\\modules\\win32\\python\\0.4.4\\lib\\subprocess.py\", line\n594, in init
\nerrread, errwrite)
\nFile \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\\modules\\win32\\python\\0.4.4\\lib\\subprocess.py\", line\n822, in _execute_child
\nstartupinfo)
\nWindowsError: [Error 3] The system cannot find the path\nspecified

{html}", "updateAuthor": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:34.000+0000", "updated": "2011-04-15T02:22:34.000+0000" }, { "id": "122657", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Troy,

\n

If you don't mind let's try removing Titanium from XP and\nstarting with a fresh install.

\n

delete C:\\Program Files\\Titanium Developer
\ndelete \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\"
\ndelete C:\\Documents and Settings__YOURUSERNAME__.titanium

\n

If you don't have any Titanium based apps with data\nthen
\ndelete C:\\Documents and Settings__YOURUSERNAME__\\Application\nData\\Titanium

\n

_Ok some other test steps_

\n

From the command line make sure you can successfully run
\njavac -version

\n

You should have java 1.5.X or 1.6.X

\n

echo %JAVA_HOME%

\n

You should see the full path to the JDK\ndirectory, not the JRE directory. If you don't,\nset it in your environment.

\n

Then try installing developer again.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:34.000+0000", "updated": "2011-04-15T02:22:34.000+0000" }, { "id": "122658", "author": { "name": "jasons", "key": "jasons", "displayName": "Jason S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hi,

\n

I tried removing Titanium, and re-installing. Trace log as\nfollows:

\n
\nLaunching Android emulator...one moment\nTraceback (most recent call last):\nFile \"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\0.5.0\\android\\builder.py\", line 315, in\ns.run_emulator()\nFile \"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\0.5.0\\android\\builder.py\", line 69, in run_emulator\n\"'*:d *'\"\nFile \"C:\\ProgramData\\Titanium\\modules\\win32\\python\\0.4.4\\lib\\subprocess.py\", line 594, in __init__\nerrread, errwrite)\nFile \"C:\\ProgramData\\Titanium\\modules\\win32\\python\\0.4.4\\lib\\subprocess.py\", line 822, in _execute_child\nstartupinfo)\nWindowsError: [Error 3] The system cannot find the path specified\n
\n

Thank you for any other suggestions. Have not been able to get\nTitanium emulators working yet.

{html}", "updateAuthor": { "name": "jasons", "key": "jasons", "displayName": "Jason S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:34.000+0000", "updated": "2011-04-15T02:22:34.000+0000" }, { "id": "122659", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Jason S,

\n

It looks like it is unable to locate the Android SDK. Were you\nprompted for
\nthe SDK's location when you created your application?

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:35.000+0000", "updated": "2011-04-15T02:22:35.000+0000" }, { "id": "122660", "author": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hello Don,

\n

I removed Titanium and re-installed using the instructions for\ndeveloping in Windows outlined in the CodeStrong documentation. Now\nthe android emulator starts and the test mobile default application\nis already working. I think the problem had to do with setting the\ncorrect environment variables. In XP JAVA_HOME was not\nautomatically set so I had to put it in manually. Thank you for\nyour time.

{html}", "updateAuthor": { "name": "troyborja", "key": "troyborja", "displayName": "Troy Borja", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:35.000+0000", "updated": "2011-04-15T02:22:35.000+0000" }, { "id": "122661", "author": { "name": "finndo", "key": "finndo", "displayName": "finndo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Not sure why this has been so difficult for someone to get you a\nproper response... I don't know anything about Python, and I have\nno idea what this script is written to run in, but I found the\nproblem and while not a solution, I found a \"resolution\" if you\nwill.

\n

if you can type javac -version and get 1.6.xxxxx then you don't\nneed this script telling you there is a problem. what is wrong is\nthe script is looking for \"1.6\" no more, no less. if javac -version\nreports back 1.6.0_21 (which is current JDK as of a couple of weeks\nago, although JRE is at 1.6.0_24) then prereq.py will report it as\nan invalid version. edit the file, somewhere around line 17 you\nwill see \"1.6\" in the file, change that to match what your javac\n-version reports back to you and you should be good. Well, at least\nuntil you update your JDK version... :P

\n

if you need more help, I have written a blog post about it that,\nwhile a bit more confusing, shows you how to change this so it\nworks, step by step, on linux, using VI as the editor.

\n

http://bit.ly/gxpR6w

\n

hope this helps some, also if this is the resolution used to\ncreate the prereq.py file posted above, it might not be working for\npeople, because their JDK is a newer version...

{html}", "updateAuthor": { "name": "finndo", "key": "finndo", "displayName": "finndo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:35.000+0000", "updated": "2011-04-15T02:22:35.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }