Clean up the classpath

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search

Revision as of 22:23, 20 February 2006


Conflicts often arise with older or incompatible versions of classes.

Starting Resin with an empty CLASSPATH environmental variable is a first step to eliminating these classes.

win> set CLASSPATH=
win> httpd.exe
 
unix.sh> export CLASSPATH=""
unix.sh> bin/httpd.sh

If you have manually placed any jars in $RESIN_HOME/lib or your jdk directories, there may be conflicts with classes in those jars.

If a new version of Resin is installed overtop of an older version of Resin (i.e. in the same directory), some old jars might be left. It is best to give each version it's own directory.

If the RESIN_HOME environment variable is not set, Resin may be picking up an older version.

You can start httpd with the -verbose option to see the CLASSPATH that is being used when Resin is started.

Personal tools