Hi, Thomas,

I have been trying to set up an applet using batik. I used following
lines to specify the Crimson parser to avoid the security exception:

XMLResourceDescriptor.setXMLParserClassName("org.apache.crimson.parser.XMLReaderImpl");

But it still gave me the same exception .Then I found your previous
email in which you wrote:

>There are two ways to specify the SAX2 parser Batik should use.
>The first, which I think most people use is to provide the resource
>file:org/apache/batik/util/resources/XMLResourceDescriptor.properties
>which should have the following two properties:

>org.xml.sax.driver = org.apache.xerces.parsers.SAXParser
>org.w3c.css.sac.driver = org.apache.batik.css.parser.Parser

>The first is the one you probably want to change.  I don't think you
>need to change the file Batik provides just make sure that your copy of
>the file appears earlier on the class path.

How to add the new properties file to the class path? I thought class
path is for class files and jar files. Is there a way to specify it in
the applet html file? All of my jar files are in public_html/Viewer
directory and mentioned in the applet html file. 

Also I should change the first line to:
org.xml.sax.driver = org.apache.crimson.parser.XMLReaderImpl, right?
Just want to make sure.

I really appreciate your help.

Weiming





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to