Javac class compile error

I have been trying to compile a java bean using javac from within Fedora Linux 5. I compiled the first bean creating a class succesfully but the second keeps on coming up with an error. Both java files are stored in WEB-INF/classes/beans

Here is my code:

//ItemOrder.java

//file location /WEB-INF/classes/awpica

package beans;

publicclass ItemOrderimplements java.io.Serializable{

private String name;

//constructor

public ItemOrder(){

name =null;

}

//accessors

public String getName(){return name;}

publicvoid setName(String s){name = s;}

publicboolean isValid()

{

if ( ( name !=null) )

returntrue;

else

returnfalse;

}

//end of class ItemOrder

}

//BikeOrder.java

//file location /WEB-INF/classes/beans

package beans;

import java.util.ArrayList;

publicclass BikeOrderimplements java.io.Serializable{

//instance variable

private ArrayList cart;

//constructor

public BikeOrder(){

if (cart ==null)

cart =new ArrayList();

}

publicvoid setItem(ItemOrder o){cart.add(o);}

public ArrayList getCart(){return cart;}

//end of class

}

When compiling the bike order the following error is produced -

ItemOrder cannot be resolved to a type

Many Thanks

[3314 byte] By [Mr_Scientista] at [2007-11-27 5:31:57]
# 1
The classes are in the same package, they should be in the same directory.
ejpa at 2007-7-12 14:57:38 > top of Java-index,Developer Tools,Java Compiler...