[Axualize-users] class loading via jar files
Brought to you by:
russwyte
|
From: Frank B. <fbu...@el...> - 2003-03-10 19:29:06
|
Hi--
I am attempting to load classes via two different jar files, with syntax
like:
<load-classes>
<relative-url href="echo.jar"/>
<relative-url href="swingutils.jar"/>
</load-classes>
To test this I first instantiated an object from 'echo.jar' only. It
works just fine.
I modified the XML to instantiate only an object from 'swingutils.jar'.
It crashed trying to instantiate the object.
Next, I removed the line loading the echo.jar file from my XML and
re-ran my application. It ran fine and instantiated an object from
swingutils.jar without error.
I then reversed the order of the jar references (swingutils first then
echo), and instantiated an object from
swingutils. It ran fine. I added code to instantiate an object from
echo.jar, and it crashed attemtpting to instantiate it.
My conclusion is that only the classes in the first jar file are
visible. Is this a known limitation or a bug? Or, am I once-again doing
something foolish? At the moment, I can get by with importing only 1 jar
file, but I can see where this may be a limitation in the future.
Am I missing something?
Thanks,
Frank
|