Search code examples
apache-flexairmxmlc

MXMLC strange error: Error: only one source is allowed in the filespec


I'm trying to compile the simple AIR app from here. I get a strange error, strange in that Googling it hardly reveals three results.

mxmlc -library-path=/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc NativeProcessTestFlex.mxml

Loading configuration file /Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/flex-config.xml Adobe Flex Compiler (mxmlc) Version 4.5.0 build 17689 Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.

Error: only one source is allowed in the filespec

Use 'mxmlc -help' for information about using the command line.

Anyone knows what this error is all about?


Solution

  • try this instead:

    mxmlc -library-path="/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc" NativeProcessTestFlex.mxml
    

    You had spaces in the application name, which make the command line think it was the next 'parameter'.