Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

Hassan Schroeder

2006-12-13

Replies:

On 12/12/06, Mon Cab <futon33@(protected):

> I will research how to uninstall gnu and install sun sdk.

I suggest you not worry about the existing gnu java -- all you have
to do is:
1) download the Sun JDK
2) install it -- I prefer somewhere specific like /usr/local/jdk1.5.0_06/
  so I know exactly what I've got, and can install upgrades in parallel
  without affecting existing installs; YMMV of course
3) set JAVA_HOME and JRE_HOME properly in your Tomcat startup
  scripts and in your own shell initialization files, e.g. .bashrc, and
  include them in your PATH, something like (.bashrc example)

export JAVA_HOME=/usr/local/jdk1.5.0_06
export JRE_HOME=$JAVA_HOME/jre
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin: ... all your other path entries ...

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@(protected)

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.