Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

innerclasses in applets

 
Nick George
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right... i've got an inner class in my applet, generating the NoClassDefFoundError. in the topic further down on this page, someone found the solution by "jaring it up." This has little meaning to me. I don't know how to make a jar, nor how to load it into the webserver, as this person did. If these questions have been rehashed a million times, please tell me where i can find the solutions i seek.
Thanks,
nick
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Putting the classes in a jar file shouldn't actually be necessary, but it is necessary to have all the .class files for the applet in the same place. Inner classes get compiled into their own .class files, so make sure that you've copied all the classes to the web server, and things should work fine.
 
Nick George
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all the classes are in the same folder, if that's what you mean. Of loading them all onto the webserver i know not. i've got an html code file and all the classes in the same folder. as i understnad it, clickin' on the html file SHOULD load the applet, but i'm getting java.lang.NoClassDefFoundError: BreezySwing/GBApplet. As i said before, this seems strange to me. it says it can't find the GBApplet in BreezySwing, but i never told it it was in BreezySwing, so clearly it does know where it is.
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic