[jdom-interest] error compiling sample jdom program

Jason Hunter jhunter at acm.org
Wed Aug 2 19:16:05 PDT 2000

You can compile everything in JDOM using the build script.  To build the
samples type "build samples".  Running the examples is a little trickier
because you have to set your own classpath there.  Make sure to include
the build/classes dir and the lib/xerces.jar file.


"Wu, Charlie" wrote:
> Hi all:
> I am trying to play with JDOM by following Jason and Brett's article on java
> world http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom_p.html.
> I downloaded the b4 release and added jdom.jar to my classpath, however I
> still couldn't compile this example program WarReader.java, here's the
> error..
> D:\cwu\javaxml>javac WarReader.java
> WarReader.java:21: cannot access org.xml.sax.InputSource
> file org\xml\sax\InputSource.class not found
>       Document doc = builder.build(new File(args[0]));
>                             ^
> 1 error
> Am I missing anything here?
> Thanks
> Charlie
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list