Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML Parser problem

807600Jun 7 2007 — edited Jun 8 2007
Hi,

I am having trouble using the Xerces XML parser, when I attempt to create a new instance of the DocumentBuilder I get the error:

javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

I have been searching for a couple of days now and have tried using:
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
as recommended in another thread, I have imported all required jar files into Eclipse and if I create an instance of 'org.apache.xerces.jaxp.DocumentBuilderFactoryImpl' explicitly in code it compiles so the libarary is available.

I am from a C++/C# background with only limited knowledge of the Java environment and so could be missing something blindingly obvious but I am at a loss as to what it is so any help would be greatly appreciated.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2007
Added on Jun 7 2007
8 comments
213 views