This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Error in when compiling in NetBeans 4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error in when compiling in NetBeans 4.1" Watch "Error in when compiling in NetBeans 4.1" New topic
Author

Error in when compiling in NetBeans 4.1

Atlas Cot
Greenhorn

Joined: Sep 12, 2005
Posts: 5
hello,

I get the following error message when i run my program in NetBeans:

java.lang.NoClassDefFoundError: javaapplication4/Test
Exception in thread "main"
Java Result: 1

How do fix this?

thanks in advance,
Atlas
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Make sure that the referenced class is on the classpath
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error in when compiling in NetBeans 4.1