Java compile problem

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:40]
# 1
are you compiling from the command line? does your classpath point to WEB-INF/classes/beans?
developer_jbsa at 2007-7-12 14:57:05 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Yes I am compiling from the command line. I have been navigating to the classes folder using the 'cd' command and then typing in 'javac beans/BikeOrder.java' to compile. Haven't entered any commands relating to a classpath.
Mr_Scientista at 2007-7-12 14:57:05 > top of Java-index,Desktop,Developing for the Desktop...
# 3
Yes I am compiling from the command line. I have been navigating to the classes folder using the 'cd' command and then typing in 'javac beans/BikeOrder.java' to compile. Haven't entered any commands relating to a classpath.
Mr_Scientista at 2007-7-12 14:57:05 > top of Java-index,Desktop,Developing for the Desktop...
# 4
your source files seemed to be in different dirs//file location /WEB-INF/classes/awpica//file location /WEB-INF/classes/beansbut in the same package
developer_jbsa at 2007-7-12 14:57:05 > top of Java-index,Desktop,Developing for the Desktop...