geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <>
Subject Re: Endorsed dirs
Date Fri, 25 Aug 2006 19:43:12 GMT
On 8/25/06, Jason Dillon <> wrote:
> Anyone know if the jars in the endorsed dir need to be added to the
> classpath... or will the jvm just suck up all *.jar files and load
> them anyways?

No, they needn't.

An excerpt from 'Endorsed Standards Classes Deployment'

Classes implementing newer versions of endorsed standards should be
placed in JAR files. The system property java.endorsed.dirs specifies
one or more directories that the Java runtime environment will search
for such JAR files. If more than one directory path is specified by
java.endorsed.dirs, they must be separated by File.pathSeparatorChar.
If no value is set for java.endorsed.dirs, then Sun Microsystem's
implementation of the Java 2 Platform looks for JAR files in a default
standard location:

    <java-home>\lib\endorsed          [Microsoft Windows]
    <java-home>/lib/endorsed          [Solaris or Linux]

Here <java-home> refers to the directory where the runtime software is
installed (which is the top-level directory of the Java 2 Runtime
Environment or the jre directory in the Java 2 SDK).

The Java runtime environment will use classes in such JAR files to
override the corresponding classes provided in the Java 2 Platform as
shipped by Sun.


Jacek Laskowski

View raw message