# What? "The class being compiled does not match the class that was imported"

**URL:** https://forum.kirupa.com/t/what-the-class-being-compiled-does-not-match-the-class-that-was-imported/235866
**Category:** flash
**Created:** [August 15, 2007, 12:59pm UTC](https://forum.kirupa.com/t/what-the-class-being-compiled-does-not-match-the-class-that-was-imported/235866 "2007-08-15T12:59:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aesir](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Aesir](https://forum.kirupa.com/u/Aesir)
#### Post date: [August 15, 2007, 12:59pm UTC](https://forum.kirupa.com/t/what-the-class-being-compiled-does-not-match-the-class-that-was-imported/235866/1 "2007-08-15T12:59:32Z")

</div>

[COLOR=black][FONT=Arial]So my classes are all disorganized. I make a class path in my AS Preferences.[/FONT][/COLOR]

[COLOR=black][FONT=Arial]_C:\Custom\_AS2\_Classes_[/FONT][/COLOR]

[FONT=Arial]My script for a test of this class path is an [/FONT][FONT=Arial]FLA[/FONT][FONT=Arial]:[/FONT]

[FONT=Arial]_import com.tests.trees.Junpier;_[/FONT]  
[FONT=Arial]_var myJuniper:Juniper = new Juniper();_[/FONT]

[FONT=Arial]com being a subfolder of [COLOR=black]Custom\_AS2\_Classes and so on down to the Juniper class, which just traces something when constructed.[/COLOR][/FONT]

[COLOR=black][FONT=Arial]All I get is this error:[/FONT][/COLOR]  
_“The class being compiled, ‘Juniper’, does not match the class that was imported, ‘Juniper’.”_

Thanks in advance.

[SIZE=3][FONT=Times New Roman][COLOR=darkred][COLOR=black][FONT=Arial][FONT=Arial][SIZE=2][COLOR=darkred]EDIT: I understand this must be a common problem. I did try to google and kirupa search, and got lots of results. Yet none of them seemed to address the problem, strangely. Very frustrating.[/COLOR][/SIZE][/FONT][/FONT][/COLOR] [/COLOR][/FONT][/SIZE]
