This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in when compiling in NetBeans 4.1  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Master Rancher
Posts: 2859
32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that the referenced class is on the classpath
 
A timing clock, fuse wire, high explosives and a tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!