avalon-apps-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@realityforge.org>
Subject Re: Help with loading classes from an extrenal Jar source.
Date Sun, 24 Nov 2002 01:23:49 GMT
On Mon, 18 Nov 2002 22:53, Gerald E. Bennett wrote:
> In phoenix are their some special tricks to get access to certain
> classes that are part of the .sar application itself?

You should be able to do something like

final ClassLoader parent = getBlockContext().getClassLoader();
final URLClassLoader cl = 
  new URLClassLoader( myUrls, parent );

The important thing to make sure is that the parent classloader is the 
classloader that used to laoder resources from the .sar file.


Peter Donald
| Never argue with an idiot, they'll drag you down to |
| their level, and beat you with experience           |

To unsubscribe, e-mail:   <mailto:avalon-apps-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-apps-dev-help@jakarta.apache.org>

View raw message