That depends on what you mean by setting up the classpath though. If you
mean setting up the system level classpath (WRKENVVAR LEVEL(*SYS)) then
there isn't much of a difference.

The thing you need to be careful about when doing it though, is anything
you put in the ext directory will be added to the classpath. So, it is a
good idea to know exactly what packages are in what jar files. You can
run into interesting problems with things like XML API's that use and
include different versions of XML parsers in the jar with the API. I
have also seen it cause problems with WebSphere when a
newer/older/different version of Xerces was put in the ext directory.
However, your mileage may very.

There is a difference between web-inf/lib and the /jre/lib/ext
directory. The jars in web-inf/lib are only used by the application(s)
in your app server, the jars in the /jre/lib/ext directory are used
system wide, by anything and everything.

I don't believe that subfolders of /jre/lib/ext are searched

Hopefully, if I am completely off my rocker on any of this, someone will
correct me.

Dan Feather
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Franco Biaggi
Sent: Monday, February 07, 2005 8:37 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Newbie question: \jre\lib\ext vs classpath


none, if you have not duplicated jar names or different versions.

Lim Hock-Chai wrote:

>what is the different between setting up classpath and just put jar
files in \jre\lib\ext? 

*** This messages was scanned for malicious contents ***
Franco Biaggi
CH-6807 Taverne

NOTICE: This electronic mail message and any files transmitted with it are 
intended exclusively for the individual or entity to which it is addressed. The 
message, together with any attachment, may contain confidential and/or 
privileged information. Any unauthorized review, use, printing, saving, 
copying, disclosure or distribution is strictly prohibited. If you have 
received this message in error, please immediately advise the sender by reply 
email and delete all copies.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.