{ "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\nJust got my environment all set up with Android, when I attempt\nto launch a my newly created mobile android app I get:
\nLaunching 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
\nI 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
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.
\nIf you run prereq.py from the command line, it correctly detects\njava as well.
\nLooking at the python docs POpen in 2.5\nuses CreateProcess under the covers.
\nOn 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.
\nFrom MSDN.aspx)
\nThe 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.
@Don
\nI am running on vista and getting this error as well.
\nI tried to make the change you specified but no dice.
Do I downloaded java but is there something I am missing?
I will be working on the fix and testing XP, Vista, and Windows\n7. If it is easily patchable, I'll update instructions.
Sounds Great.
\nThis error has me stopped in my tracks.
Thanks Don.
I've attached a replacement prereq.py that should work on\n0.4.2.
\nIf you still have an issue, then you might need to follow the\nclean up steps in \nAndroid Emulator Stopped Working
Hello Don,
\nI 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.
\nLaunching 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
Any Ideas?
This problems also occurs here. Even after replacing the\nprereq.py.
Troy & Richard,
\nDid you also do all the steps in \nAndroid Emulator Stopped Working
Don,
\nI 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.
Don,
\nI upgraded to 0.5.0 and still get this error on Titanium\nDeveloper running on XP when I launch the android emulator.
\nLaunching 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
Troy,
\nIf you don't mind let's try removing Titanium from XP and\nstarting with a fresh install.
\ndelete C:\\Program Files\\Titanium Developer
\ndelete \"C:\\Documents and Settings\\All Users\\Application\nData\\Titanium\"
\ndelete C:\\Documents and Settings__YOURUSERNAME__.titanium
If you don't have any Titanium based apps with data\nthen
\ndelete C:\\Documents and Settings__YOURUSERNAME__\\Application\nData\\Titanium
_Ok some other test steps_
\nFrom the command line make sure you can successfully run
\njavac -version
You should have java 1.5.X or 1.6.X
\necho %JAVA_HOME%
\nYou should see the full path to the JDK\ndirectory, not the JRE directory. If you don't,\nset it in your environment.
\nThen try installing developer again.
Hi,
\nI 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
\nThank you for any other suggestions. Have not been able to get\nTitanium emulators working yet.
Jason S,
\nIt looks like it is unable to locate the Android SDK. Were you\nprompted for
\nthe SDK's location when you created your application?
Hello Don,
\nI 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.
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.
\nif 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
\nif 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\nhope 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...