J
Jonathan Shore
I have not been able to determine a solution to the following problem:
- have an applet sourced from two jars (a.jar, b.jar)
- one a class in one jar attempts to instantiate a type dynamically in
other jar
- "a" has infrastructural classes and "b" has application classes.
"b" depends on "a", but "a" has machinery to instantiate a class in
"b".
- the applet tag lists the jars as: archive='a.jar,b.jar'
In an object created from a class in a.jar:
class.forName(<typename in jar b>)
fails with a ClassNotFoundException. I think this the problem is that
classes in a.jar are using a class loader that does not have top-level
access to the "a" and "b" jars.
I can't get access to the system class loader as am in a privileged
environment. Any thoughts on how to solve this?
Thanks
Jonathan Shore
CTO
Derive Inc
- have an applet sourced from two jars (a.jar, b.jar)
- one a class in one jar attempts to instantiate a type dynamically in
other jar
- "a" has infrastructural classes and "b" has application classes.
"b" depends on "a", but "a" has machinery to instantiate a class in
"b".
- the applet tag lists the jars as: archive='a.jar,b.jar'
In an object created from a class in a.jar:
class.forName(<typename in jar b>)
fails with a ClassNotFoundException. I think this the problem is that
classes in a.jar are using a class loader that does not have top-level
access to the "a" and "b" jars.
I can't get access to the system class loader as am in a privileged
environment. Any thoughts on how to solve this?
Thanks
Jonathan Shore
CTO
Derive Inc