jar files and CLASSPATH

From: Alan Jones (AlanJones_at_stny.rr.com)
Date: 11/24/03

Date: Mon, 24 Nov 2003 00:29:30 GMT

I have an application that runs fine when it is still a class. There's only
one class, say, foo.class. When I turn it into a foo.jar file and execute:

java -jar foo.jar

I get errors about not finding some classes that it finds okay when run as a
class. These are classes from a third-party provider. The strange thing is
it seems to find classes in xerces.jar okay but not in other jar files.

Any ideas?