File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic


Amit More

Joined: Oct 16, 2003
Posts: 24
hi friends,
I am running an EJB client code in Weblogic server 7, and I have set the classpath and environment appropriately.
The code gets compiled well but while executing it gives me the following error :
Exception in thread "main" java.lang.NoClassDefFoundError: com\ejb\examples\HelloClient
Reply back as earyl as possible.

Thanks,<br />Amit
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Grab your .ear file, do jar -tf on it, and double-check that the interface .class files are inside the .ear.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: NoClassDefFoundError
It's not a secret anymore!