• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AdviceClient from HeadFirst EJB runtime exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic