xerces in .jar.bz2

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top