Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Appletviewer throwing NoClassDefFoundError

 
Thad Yure
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am compiling and running applets with the jdk1.3 on NT Workstation. They compile correctly, but when i call appletviewer I get NoClassDefFoundError. I compiled in directory "A" using a .jar file after typing:
set classpath=.;habeans.jar;
And the program compiles without error (This .jar file is in the same directory). It is only when I run this applet in the viewer do I get this error, claiming it can't find the classes that I know are part of habeans.jar. What is going on here? Why are the classes found at compile-time and not at run-time? My "path" variable points to C:\jdk1.3\bin. Help!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
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!