Flex “Output from command: error while loading initial content” fix

If you are having problems getting a new SDK installation to work with Flex Builder 3 (e.g. if you’re trying to compile a Flex project as AIR application using Flash Player 10) and get the following error:

Process terminated without establishing connection to debugger.
Command:
"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.5\bin\adl.exe" "projectPath" "bin-debug location"
Output from command:
error while loading initial content
Process terminated without establishing connection to debugger.
Command:
"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.5\bin\adl.exe" "projectPath" "bin-debug location"
Output from command:
error while loading initial content

here is the solution, thanks to Jim Hayes.

In your project, there’s a file called <yourApplicationName>-app.xml. Open it and change the following:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/x.x">

to:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.5">

That should solve your problem.

6 comments to “Flex “Output from command: error while loading initial content” fix”

Jim, you rock!!! I spent the whole day, not knowing what went wrong and You solvd it man!!! I’ll get back to you for any further doubts if you don’t mind…

Thanks for each of your efforts on this web site. Betty takes pleasure in participating in investigation and it’s easy to understand why. A number of us know all about the dynamic way you present sensible techniques via the web blog and as well increase response from other individuals on this concept plus my child is truly studying a great deal. Take pleasure in the rest of the new year. Your conducting a first class job.

I’m facing similar issue, but it’s not getting fixed with this.

Here is the error:

Process terminated without establishing connection to debugger.

Launch command details: “C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\bin\adl.exe” -runtime “C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\runtimes\air\win” “C:\Program Files\eclipse\FB45\ZeroShrinkClient_FB45\bin-debug\myApp-app.xml” “C:\Program Files\eclipse\FB45\ZeroShrinkClient_FB45\bin-debug”

Jims -> I solved this same error playing with the –swf-version compiler argument

When I update -app.xml with latest air version I am getting the error of unknown namespace

@Shridihar: I’ve not been using Flex for a while, so I’m not aware of changes in the latest versions.

My guess, however, is that it has something to do with XML namespaces. More info about that can be found
http://www.w3.org/TR/REC-xml-names/#ns-decl
and
http://en.wikipedia.org/wiki/XML_namespace

Cheers!

Leave a reply