-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mon,

Mon Cab wrote:
> Here's the results of java -version
> 
> java version "1.4.2"
> gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)

Well, /there's/ yer problem: you have GNU Java -- not that there's
anything wrong with that.

You can't load this class:

> Does this explain why com.sun.image.codec package is not accessible?

The "com.sun" indicates that it is not a standard class (in fact, Sun's
javadoc for this class used to specifically say "use these classes with
care, as they might disappear when you don't expect them to"), but one
that Sun provides with their JRE.

Since you are using the GNU version, they do not include this class, and
you have to provide it yourself, separately.

Where did you get the JPEG package as a JAR File? I wasn't aware that it
was available from Sun. You might consider using JAI (Java Advanced
Imaging) for a more standard (if not infinitely more complex) API.

http://java.sun.com/products/java-media/jai/

The only downside is that it uses a native library so you have to have a
supported architecture (x86 Linux is definitely supported) and deal with
installing a native library under Tomcat (which isn't a big deal).

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFfr8M9CaO5/Lv0PARApCdAJ9WBI6Uq79Px5T7l90poEnoAMGcpACeM9tB
+3zzyRtxgbiAnsFiwBAVgbA=
=kK3K
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to