A
Adam
I need to make the system class loader know about a class which isn't on the
classpath, but is loaded at run time.
Other classes on the classpath (and hence are loaded by system class loader)
need to be able to use this runtime loaded class. How can I do this?
A bit of background might help: I'm using JBoss with JFreeReport (the latter
library isn't important). The JFreereport classes are on the classpath when
JBoss is started, so everything can see them.
However, JFreeReport cannot see classes which are deployed in jboss as
(presumably) they will have to be loaded using a different class loader.
JFreereport is trying to load a couple of the deployed classes at runtime
using Class.forName(), but cannot find the class, as it is trying to use the
default class loader.
I'm hoping that perhaps there is someway of 'adding' these classes to system
class loader at run time so it will find them, tho I've had no luck so far.
Any ideas?
adam
classpath, but is loaded at run time.
Other classes on the classpath (and hence are loaded by system class loader)
need to be able to use this runtime loaded class. How can I do this?
A bit of background might help: I'm using JBoss with JFreeReport (the latter
library isn't important). The JFreereport classes are on the classpath when
JBoss is started, so everything can see them.
However, JFreeReport cannot see classes which are deployed in jboss as
(presumably) they will have to be loaded using a different class loader.
JFreereport is trying to load a couple of the deployed classes at runtime
using Class.forName(), but cannot find the class, as it is trying to use the
default class loader.
I'm hoping that perhaps there is someway of 'adding' these classes to system
class loader at run time so it will find them, tho I've had no luck so far.
Any ideas?
adam