Hi Francois,
"Francois RAJCHENBACH" <[EMAIL PROTECTED]> wrote on
04/24/2007 10:56:48 AM:
> I'm trying to develop an applet that uses Batik's PrintTranscoder
> and Java's Print Service to print a SVG file. I'm using Batik 1.6
> and Java 1.4.2_07. Here is the code of a public method of my applet:
> public void printSvgFromUrl(String inUrl, String inPrinterName)
{
> try {
> XMLResourceDescriptor.
> setXMLParserClassName("org.apache.xerces.parsers.SAXParser");
[...]
>
> When I call this method from JavaScript, I get the following stack
trace:
>
> java.io.IOException: SAX2 driver class org.apache.xerces.parsers.
Your Applet isn't including the xerces jar file.
> I put xerces_2_5_0.jar in the archive attribute of the applet tag
> inmy web page. Can anyone tell me what's wrong ?
It's not being found. However if you use Batik 1.7 it generally uses
JAXP to locate an XML parser, which should work without having to
download the xerces jar.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]