Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compile error in Client Code

 
muhsin sabeer
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the headfirst package you need to have the client jar file in the classpath and for the javax.ejb package you need to have the j2ee.jar file in your classpath. Please check your classpath again.
 
muhsin sabeer
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Doshi,

Thanks!
I found out the problem. I got compilation error when I follow exactly as HJEJB. After set up classpath, I compile my client file
as javac AdviceClient.java and it works.

Thank you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic