# AIR classes don't compile with CompC

**URL:** <https://forum.kirupa.com/t/air-classes-dont-compile-with-compc/267922>\
**Category:** flash\
**Created:** [August 7, 2008, 11:23am UTC](https://forum.kirupa.com/t/air-classes-dont-compile-with-compc/267922 "2008-08-07T11:23:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duncanhall](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@duncanhall](https://forum.kirupa.com/u/duncanhall)\
**Post date:** [August 7, 2008, 11:23am UTC](https://forum.kirupa.com/t/air-classes-dont-compile-with-compc/267922/1 "2008-08-07T11:23:48Z")

</div>

I’ve been using compc with ANT to compile some of my class files into SWC files. This all works well, until any of the classes to be compiled contain a reference to any of the AIR classes. At this point I start getting the following type of error:

_col: 39 Error: Type was not found or was not a compile-time constant: NativeWindow.  
col: 46 Error: Type was not found or was not a compile-time constant: File.  
col: 23 Error: Definition flash.desktop:NativeApplication could not be found._

It only seems to be any of the AIR packages/classes that cause a problem, so I’m really hoping they are not just simply exempt from compilation.

If anyone knows how I can get around this, I would very much appreciate the help.

Thanks.
