But, do they automatically make it onto the classpath? This snip does not really lead me to believe that it does or does not.

--jason


On Aug 25, 2006, at 12:43 PM, Jacek Laskowski wrote:

On 8/25/06, Jason Dillon <[EMAIL PROTECTED]> 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'
(http://java.sun.com/j2se/1.4.2/docs/guide/standards/index.html):

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

--
Jacek Laskowski
http://www.laskowski.net.pl

Reply via email to