Skip to main content

Error while Running Dom Sample with jaxp 1.3 in J2SDK 1.4.

1 reply [Last post]
sbilla
Offline
Joined: 2005-08-09

Hi,
i am trying to run DOM Sample program,in J2sdk1.4.2_08 environmnent. i copied all the jar files except jaxp-api.jar in the jre/lib/endorsed directory.
apart from that i am trying to run this program through command prompt by setting the classpath to all the jars. including jaxp-api.jar;

i am getting the following error. i have already followed the steps , what ever you mentioned updating j2sdk1.4 with jaxp 1.3 .

Can u pls provide solution for this one

Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.parsers.Docume
ntBuilderFactory.getSchema()Ljavax/xml/validation/Schema;
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.(Un
known Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.ne
wDocumentBuilder(Unknown Source)
at CreateOrderDOM.(CreateOrderDOM.java:61)
at DOMSample.main(DOMSample.java:60)

Warm Regards,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
inathaniel
Offline
Joined: 2006-08-26