Hello I created the Session beans from the Cahpter 1 and the ear file sucessfully and while using the deploytool The Client jar was also created...
Now I have my Client
java file which needs to use the Client jar file but its not compiling...
My project structure is as follows
projects\advice which has classes, src (used while creating the Session bean), ear file created, Client jar file and the Client java file I am trying to compile ...
The AppClient.jar file has the headfirst folder in it..
How do i compile the AdviceClient.java file ?
From the advice folder I tried to say javac -classpath entirepath\AdviceAppClient.jar AdviceClient.jar and it gives me errors like
AdviceClient.java:5: package javax.ejb does not exist
import javax.ejb.*;
^
AdviceClient.java:24: cannot access javax.ejb.EJBHome
file javax\ejb\EJBHome.class not found
Advice advisor = home.create();
^
AdviceClient.java:27: cannot access javax.ejb.EJBObject
file javax\ejb\EJBObject.class not found
System.out.println(advisor.getAdvice());
I have setup the J2EE_HOME and the JAVA_HOME and j2ee.jar is also in the classpath...
I am not sure what the {CLASSPATH}: means in the book
Can someone who ran this example before help me get some advice from the bean ?