• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpMessage class not found error

 
udit sharma
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
 
Peter Gragert
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"
 
Madhav Lakkapragada
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic