Re: [Axualize-users] class loading via jar files
Brought to you by:
russwyte
From: Frank B. <fbu...@el...> - 2003-03-10 19:57:19
|
Adding multiple <load-classes> tags works like a charm...If you update <load-classes> to handle more than one library, I would be glad to use it. Until then, adding multiple tags will work for me. thanks, Frank On Mon, 2003-03-10 at 14:44, Russell White wrote: > Hi Frank, > > The short answer to your question is that while the syntax you are using makes > sense (And I may chagng the <load-classes> TagHandler to accomodate it) it is > not technically correct (for now). > > The bad news: > Each <load-classes> tag can only refer to one library. > > The good news: > You can have as many <load-classes> tags as you like to load as many libraries > as you like. :) > > Look for mutiple URL per tag support in the next release in the next day or so. > > I hope that helps. Thanks for exposing something I had not thought of myself! > That always helps. :) > > WR > Russ > --- Frank Burough <fbu...@el...> wrote: > > 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 > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Axualize-users mailing list > Axu...@li... > https://lists.sourceforge.net/lists/listinfo/axualize-users |