JAXP and setting org.xml.sax.driver

"William W. Nelson" <[email protected]> Thu, 27 Feb 2003 00:31:35 -0700
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
Hi,

I have installed j2sdk1.4 on a Windows XP PC.  JAXP is included in 1.4.
I have coded a Java program to use XMLReaderFActory.createXMLReader() to get an XMLReader parser object.  However, when I execute it, I get an exception, "System property org.xml.sax.driver not specified."
If I specify a one-time value for this property using the -D flag with the Java interpreter, it works okay:

 >java -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl TestPgm

How can I permanently set the Java system property org.xml.sax.driver to
a value of "org.apache.crimson.parser.XMLReaderImpl"?  How do I set Java system properties?

I've searched this listserve's archives, and sun's java web site, and couldn't find the answer.

tia!

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.