AMXMLC "Error: Unable to locate specified base class 'spark.components.WindowedApplication'"

1.3k views Asked by At

I'm a newbee to AIR and Flex, and I've been having trouble using amxmlc to compile a .mxml file from the command line. Specfically, I am getting the following error:

Error: Unable to locate specified base class 'spark.components.WindowedApplication' for component class 'DesktopClient'.

Googling has informed me that this is commonly the result of attempting to use mxmlc to compile an AIR project, and all the solutions I have yet found suggest to use amxmlc instead. However, that is what I am already doing.

This is how I am using amxmlc on the command line:

/Users/samreha/Documents/Apache\ Flex/bin/amxmlc -library-path /Users/samreha/Documents/Apache\ Flex/frameworks/libs/air/airframework.swc --  DesktopClient.mxml
1

There are 1 answers

1
Black Dynamite On

A WindowedApplication is an AIR specific component. You are essentially trying to compile an AIR application with a Flex compiler.