On Wed, 13 Apr 2005 11:09:58 +0100, Nomak <> wrote:
> Thx
>
> but my program must load xerces dynamicaly, how can i do?
>
> (i tried to set the "Class-Path:" header in the manifest, but first it
> doesn't do anything, and then it would mean that xerces must be at the
> same location on all the computer where my program must run?!)
>
It only has to be in the same relative location, not the same absolute
location. So if you set the classpath in the manifest like this...
Class-Path: xercesImpl.jar
....you would need to deploy xercesImpl.jar in the same directory as your
jar file.
If you use...
Class-Path: lib/xercesImpl.jar
.... then the Xerces jar would have to be in a "lib" directory beneath the
directory where your jar file is.
So it doesn't matter if your app is installed in "C:\Documents and
Settings\username\My Documents\yourapplication" on Windows or
"/home/username/yourapplication" on Linux, or in any other location on any
supported platform. It will work on both so long as the file tree below
"yourapplication" is the same.
Dan.
--
Daniel Dyer
http://www.footballpredictions.net