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

HF EJB p58 - what should I see?

 
jim bonafede
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To clarify, I'm following along with Head First EJB by Sierra and Bates. I'm on page 58.

The task is to make, deploy, and test a bean called AdviceBean.

I have successfully deployed the bean, and now I am attempting to test it with a client.

I've compiled the example client code using the following command:



Please note, the book has this line as:



but I had to make the additions and changes to get AdviceClient.java to compile

So....

I get to the next page where the book says to enter:


Now, Mama didn't raise no fool so I adapt that to:


To which I get:
Exception in thread "main" java.lang.NoClassDefFoundError: AdviceClient

If I adapt the line to:


I get the same result as if I were to type:


So,

1) What was supposed to happen and how can I make it so?

2) Also, can anyone explain why {$CLASSPATH} didn't suffice? (I have already added CLASSPATH = C:\where\I\have\projects\advice to my WinXP Environments Variables)

3) I've asked this in a prior post, but I'll ask again: How can I avoid having to manually put in -extdirs C:\j2sdkee1.3.1\lib every time I want to compile a .java program?

TIA,
jim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic