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

AdviceClient from HeadFirst EJB runtime exception

 
varun sk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i was executing example 1 EJB Headirst 2.0. and got NoClassDe exception when i executed AdviceClient. Anyone going thru same book. please guide me on this.

Error recevived while executing AdviceClient from HeadFirst EJB. Please guide?

j2sdk ver = 1.4
j2sdkee1.3.1.version = 1.3


c:\java -cp c:\j2sdk1.4.1_01\;c:\j2sdkee1.3.1 AdviceClient

...
...
[Loaded sun.misc.URLClassPath$FileLoader from C:\Program Files\Java\j2re1.4.1_01\lib\rt.jar]
Exception in thread "main" java.lang.NoClassDefFoundError: AdviceClient
[Loaded java.lang.StackTraceElement from C:\Program Files\Java\j2re1.4.1_01\lib\rt.jar]
[Loaded java.util.HashMap$KeySet from C:\Program Files\Java\j2re1.4.1_01\lib\rt.jar]
[Loaded java.util.HashMap$KeyIterator from C:\Program Files\Java\j2re1.4.1_01\lib\rt.jar]

c:\

What could be the reason ?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There should be one class and two jar files present in you path
1.AdviceClient.class(Client class created by you)
2.j2ee.jar(file present in j2sdkee1.3.1\lib)
3.AdviceAppClient.jar(jar file returned by deploytool)

so Try this
java -cp .;c:/projects/advice/AdviceAppClient.jar;C:\j2sdkee1.3.1\lib\j2ee.jar AdviceClient

For further info click Here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic