File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Head First page 57 program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Head First page 57 program" Watch "Head First page 57 program" New topic

Head First page 57 program

Vishal Gupta

Joined: Jul 15, 2004
Posts: 21
I am having problems compiling the client program on Page 57 in Head First EJB book.
I played with the classpath variable and by putting the AdviceAppClient.jar in the classpath, but am still getting these errors: cannot resolve symbol
symbol : class go
location: class AdviceClient
new AdviceClient.go();
^ cannot resolve symbol
symbol : variable PortableRemoteException
location: class AdviceClient
AdviceHome home=(AdviceHome) PortableRemoteException.narrow(o,AdviceHome.cla
2 errors

Can someone point out what else needs to be done?


SCJP 1.4, SCWCD 1.4
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
I had the same problem too. Here is how I did it:
First you need to compile your client with yourBean.jar in its path

javac -classpath %CLASSPASS%;yourBean.jar

To run the compiled class, you still need the jar file in its path

java -cp %classpath%;yourBean.jar client

It works for me.

SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Vishal Gupta

Joined: Jul 15, 2004
Posts: 21
Thanks Hanna ! I had been struggling with it for the last 2 hours.
It works now ..
I agree. Here's the link:
subject: Head First page 57 program
jQuery in Action, 3rd edition