Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HttpMessage class not found error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was trying to make an applet for applet servlet communication to find current date of the system and have imported com/oreilly/servlet/HttpMessage.class package
both applet and servlet compiled well but on executing the applet the following error came
error.java.lang.NoClassDefFoundError.com/oreilly/servlet/HttpMessage
plz help me tell that where is the file httpmessage.class be included.i have already done it in webservers public_html and classes directory....
plz help
 
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know exaktly, but for my eyes it looks like the following: The server has to send the relevant class to the client too! It means if you use not standard classes you should build a jar-file of all 'unnormal' stuff put your applet-class into it too
and use the parameters archive="myjarfile.jar" code="myapplet.class" codebase="thegooddir"
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Peter:

and use the parameters archive="myjarfile.jar" code="myapplet.class" codebase="thegooddir"

So am I right in saying:

the file "myjarfile.jar" is in a sub-directory named "thegooddir". This sub-directory is in a directory which is holding "myAppletRunner.html" file which load the applet into my browser.

Any help is appreciated.
Thanks.
- satya
 
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic