I was working with Servlet which generates Image. I followed through the
example given in the book " Core Servlets and Java Server Pages" authored
by Marty Hall in chapter 7.

The example uses two classes:

ShadowedText.java
MessageImage.java

In the MessageImage.java class, the author uses another class
"GifEncoder.java" authored by Jef Poskanzer. GifEncoder.java is a package
and I placed the package in the C:\jdk1.3\jre\classes and compiled the
package.

The program compiles fine with the import statement:
import.JPM.Encoders.GifEncoder;

But I get a runtime error, The error is:

Error: 500

Internal Servlet Error:

java.lang.NoClassDefFoundError: Acme/JPM/Encoders/ImageEncoder

The GifEncoder class extends ImageEncoder class and GifEncoder object
uses a method(encode()) from ImageEncoder class.I also placed
ImageEncoder.java file in the C\jdk1.3\jre\classes directory and compiled it.

Does anyone know what I should do to avoid this run time error?Please
help me. If anyone knows where I should place ImageEncoder.java file,
please send me mail.Does anyone know how I can contact with Marty Hall,
please let me know.

E-mail:[EMAIL PROTECTED]
Regards,

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to