2001 JI Open Discussion Posted August 15, 2006 Share Posted August 15, 2006 By: Ralph Schaer - rasch org.xml.sax.driver problem 2002-07-24 01:37I have some problem to run the jasperreport sample programs with JDK 1.4. org.xml.sax.SAXException: System property org.xml.sax.driver not specified I think the problem is that JRXmlLoader does not use the prefered way to load an SAX Parser. XMLReader xmlReader = XMLReaderFactory.createXMLReader(); xmlReader.setFeature("http://xml.org/sax/features/validation", true); IMHO this is a better and more standard way to do the same task that: SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(true); XMLReader xmlReader = factory.newSAXParser().getXMLReader(); By: Teodor Danciu - teodord RE: org.xml.sax.driver problem 2002-08-05 00:13 Hi, No, this is not the problem. The problem is that you didn't provide a value for the system property "org.xml.sax.driver". You can do this using the -D switch when you launch the JVM. Its value depends on the XML parser you are using. Check the samples to see how this is done using the ANT tool. There we parse the XML file using Xerces. I hope this helps. Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now