Ok i'm sure this should be an FAQ but I'v googled it and got nowhere. I'm probably being really blind.
But: I'm trying to use the Xerces parser in my program, and I am importing the following:
import org.apache.xerces.parsers.SAXParser;
for use in the following method:
public void process(Session session) throws IOException, SAXException {
// Create a Xerces SAXParser
SAXParser parser = new SAXParser();
// Content handler
parser.setContentHandler(this);
parser.setReaderFactory(new StreamingCharFactory());
// save the session
this.session = session;
// Start the parsing..
parser.parse(new InputSource(session.getReader()));
}
Yet, my IDE is telling underlining the "org.apache" of the import and complaining that it cannot be resolved. I understand that I have to import the parser, ie the xml-apis.jar and xercesImpl.jar, yet where do I put them?? :s Any help to de-confuse me would be very much appreciated! :)