A
Alexandre Flament
I would like to use Xerces in a applet. But 900Ko is to huge for my applet.
So I wrote a bz2 protocol handler ( bz2:http://somewhere.com/xerces.jar.bz2
for exemple) : Xerces take 450Ko. The protocol handler works nice.
But I don't know how to load DOMParser from the jar since I can't declare
the .jar.bz2 in <applet> tag. (for now my test is a simple application not
a applet)
I declare a URLClassLoader, load DOMParser with
loader.loadClass("org.apache.xerces.parsers.DOMParser");
The problem is after : I can create a instance from the loaded class, but I
don't know how to declare it as a DOMParser. Each time I make a reference
to DOMParser I got a java.lang.NoClassDefFoundError.
Is there a solution ?
Alexandre
So I wrote a bz2 protocol handler ( bz2:http://somewhere.com/xerces.jar.bz2
for exemple) : Xerces take 450Ko. The protocol handler works nice.
But I don't know how to load DOMParser from the jar since I can't declare
the .jar.bz2 in <applet> tag. (for now my test is a simple application not
a applet)
I declare a URLClassLoader, load DOMParser with
loader.loadClass("org.apache.xerces.parsers.DOMParser");
The problem is after : I can create a instance from the loaded class, but I
don't know how to declare it as a DOMParser. Each time I make a reference
to DOMParser I got a java.lang.NoClassDefFoundError.
Is there a solution ?
Alexandre