This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "error message" Watch "error message" New topic
Author

error message

tim hunt
Greenhorn

Joined: Apr 19, 2001
Posts: 9
Hi,
Can someone please clarify an error message I'm getting when I try and compile some code of mine.
java.lang.NoClassDefFoundError: *******
Exception in thread "main"
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
Sounds like your classpath is not set up properly and can't locate a class that your program needs.
John


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

It would help if we saw what was underneath the ******

or even post a snip of your code.
Jaime Nino
Author
Greenhorn

Joined: Apr 16, 2001
Posts: 4
It could simply be a package name error. Example: all classes in the same package can use their functionality. Assume a class A in that package has by mistake a different name for the package, or no name at all; it may compile fine but other classes in that package will not be able to the members of class A. This error will be a compile error producing the message you are refering to.
------------------
Jaime Nino
Author of:
An Introduction to Software Construction with Java


Jaime Nino<br />Author of:<br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471354899/ref=ase_electricporkchop/107-7882751-0234939" target="_blank" rel="nofollow">An Introduction to Software Construction with Java</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: error message
 
Similar Threads
A Generic Question
going to previous page which contains frames
q from overalltesting.com
how to configure Weblogic 6.1 with JSTL?
How to print content of frame?