• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassFoundError

 
Al Swensen
Greenhorn
Posts: 17
Firefox Browser jQuery PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've been working on a Swing program that works fine unless I try running it as an applet in a browser. Every time I run it, I get this error: "java.lang.NoClassDefFoundError: TestCalc$MyTableModel" and it doesn't start. The MyTableModel class is an inner class in the TestCalc class, and I can't figure out why it's saying that the class isn't found. If I run it as an applet in Eclipse, it works perfectly fine. but obiously, I'd like to run it in a browser! How can I fix this?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is TestCalc$MyTableModel.class in the same directory as TestCalc.class?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!