File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble Using Apache Xerces

 
Sean McGaughey
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have just started an XML tutorial and I am trying to compile an example on using the DOMParser class. However I get a "package org.apache.xerces.parsers does not exist" when I try to import the package:
import org.apache.xerces.parsers.DOMParser;
and a "cannot resolve symbol" error when I try to create a new DOMParser:
DOMParser parser = new DOMParser();
After trying ggogle for a few hours the best I could find was to add "xercesImpl.jar" and "xmlParserAPIs.jar" to my classpath setting which I have done a number of times and restarted the machine each time - no luck. I definitely have the DOMParser.java and accompanying files under the following directory structure:
C:JBuilder9/extras/xerces/src/org/apache/parsers
What do I need to do to make this work? Do I need to change my import statement or move the xerces folder from "extras" into the main jdk1.4/src/org/apache folder? I am truly stuck on this and would greatly appreciate any help.
Thanks in advance,
Sean.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a forum specifically for XML and related products. I will move this post for you.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. And I'll move it to IDEs because the problem is how to add Xerces into the project's classpath in JBuilder 9
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic