EJB client compile error

I am preparing for SCBCD. I am in chapter-1 of HJ EJB. I have no problem when compiling the bean and interfaces. But I have problem when compiling client class. I followed the book but i got compilation error :

package headfirst does not exist

import headfirst.*;

package javax.ejb.* does not exist

import javax.ejb.*;

Classpaths are set correctly according to installation guidence.

Can anyone help me to figure out where am wrong. Thanks in advance.

[497 byte] By [Sabeera] at [2007-10-2 10:16:23]
# 1

for all classpath problem, try to verify your classpath if everything is correct by using -verbose switch with javac. use command, NOT ide to get a thorough understanding of how all pieces fit together. ordering of jars is important too.

javac headfirst\*.java -verbose

look for something like

[search path for class files: [C:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar,... c:\j2sdkee1.3.1\lib\j2ee.jar]]

and j2ee.jar is there

bu66lea at 2007-7-13 1:41:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
yes. I tried with javac -verbose flag.I can see the classpath as u mentioned. It is correct. But still I cant fighure out why I cant compile.
Sabeera at 2007-7-13 1:41:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...