[jdom-interest] a question

Busiello, Steve Steve.Busiello at gs.com
Tue Jun 5 13:16:16 PDT 2001

I tried to compile a simple exercise given in one of the documents I pulled
off of jdom.org

import java.io.*;
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.output.*;

public class PrintXML {
        public static void main(String[] args) {

              String filename = args[0];
              try {

                  SAXBuilder builder = new SAXBuilder();
                  Document doc = builder.build(new File(filename));
                  XMLOutputter fmt = new XMLOutputter();
                  fmt.output(doc, System.out);
              }   catch ( Exception e ) {
                  System.out.println("Error: "+e);

When I try to compile I get this error. I looked through the news groups and
found one thread that I thought was going to be useful, but it was in
when I do a fresh build A directory org\xml\sax is not generated

Z:\JDOM-B6\STEVEN>javac PrintXML.java
PrintXML.java:17: cannot access org.xml.sax.InputSource
file org\xml\sax\InputSource.class not found
                        Document doc = builder.build(new File(filename));
1 error 

Could some one lend a hand




More information about the jdom-interest mailing list