[jdom-commits] Error with JDOM

Smith, Jonathan jsmith4 at PaineWebber.com
Wed Jul 19 06:18:35 PDT 2000


I am trying to run the following sample

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

public class TestCloning {
   public static void main(String[] args) {
     
        try {
            // Build the document with SAX and Xerces, no validation
            SAXBuilder builder = new SAXBuilder();
            // Create the document
            Document doc = builder.build("department.xml");

            // Output the document, use standard formatter
            XMLOutputter fmt = new XMLOutputter();
            fmt.output(doc, System.out);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

I keep getting the following error

C:\data\projects\JDOMTest>java TestCloning
Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException

C:\data\projects\JDOMTest>

Can someone please tell me why

Johnathan Mark Smith
Messaging & Collaboration
PaineWebber Incorporated
1000 Harbor Boulevard, 6th Floor
Weehawken, NJ 07087-6791
Phone: 201.352.1387
Fax: 201.902.5273
E-mail: jsmith4 at painewebber.com

> -----Original Message-----
> From:	Smith, Jonathan 
> Sent:	Wednesday, July 19, 2000 9:04 AM
> To:	'jdom-commits at lists.denveronline.net'
> Subject:	Why do I still need the IBM XML Classes to run JDOM?
> 
> Why do I still need the IBM XML Classes to run JDOM?
> 
> Johnathan Mark Smith
> Messaging & Collaboration
> PaineWebber Incorporated
> 1000 Harbor Boulevard, 6th Floor
> Weehawken, NJ 07087-6791
> Phone: 201.352.1387
> Fax: 201.902.5273
> E-mail: jsmith4 at painewebber.com
> 



More information about the jdom-commits mailing list