Xerces library not found when running app
1 posts in topic
Flat View  Flat View

Posted By:   corey_osman
Posted On:   Wednesday, August 21, 2002 03:40 PM

I have Xerces 1.4.4 jar file in my %JAVA_HOME%/jre/lib/etc but everytime my application makes a new instance of DOMParser it says it can't find the class. I even included this path in my %classpath% variable

I execute it by typing:

java simpler

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/

what am I doing wrong?

Re: Xerces library not found when running app

Posted By:   Roseanne_Zhang  
Posted On:   Sunday, August 25, 2002 10:30 AM

1) You need to specify the system property in your command line

java -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser simpler

2) You should use factory pattern, not directory call DOMParser

3) You might mis-spell something in your post.

Hope this helps.
About | Sitemap | Contact