[jdom-interest] compilation error
Bradley S. Huffman
hip at cs.okstate.edu
Mon Oct 20 20:11:23 PDT 2003
try {
Document doc = builder.build(filename);
}
catch(JDOMException e1) {
// Handle exception
}
catch(IOException e2) {
// Handle exception
}
Brad
"Sridhar Gopu" writes:
> Hi,
> I'm new to JDOM and I'm facing a compilation error for the following files =
> DVDManager.java and DVDHandler.java. These are the files from the followi=
> ng url,=20
> http://javaboutique.internet.com/tutorials/JDOM/application.html
> The files are in the Resources section:
> The code for all the examples in the article=20
>
> The following are the list of compilation errors :
>
> C:\jdom-b9\build\src>javac BuildAndListDocument.java
> BuildAndListDocument.java:24: unreported exception java.io.IOException; mus=
> t be caught or declared to be thrown
> Document doc =3D builder.build(filename);
> ^
> 1 error
>
> C:\jdom-b9\build\src>javac DVDManager.java
> DVDManager.java:96: cannot resolve symbol
> symbol : class SortTitle
> location: class hansen.playground.DVDManager
> Collections.sort(dvds, new SortTitle());
> ^
> DVDManager.java:104: cannot access org.jdom.DocType
> bad class file: .\org\jdom\DocType.class
> bad constant pool tag: 13 at 10
> Please remove or make sure it appears in the correct subdirectory of the cl=
> asspath.
> outputter.output(doc, f);
> ^
> 2 errors
>
> C:\jdom-b9\build\src>javac DVDHandler.java
> DVDHandler.java:76: cannot access org.jdom.DocType
> bad class file: .\org\jdom\DocType.class
> bad constant pool tag: 13 at 10
> Please remove or make sure it appears in the correct subdirectory of the cl=
> asspath.
> outputter.output(doc, System.out);
> ^
> 1 error
>
>
> It would be great, if you could please look at that example application and=
> help me out.
> I'm using Tomcat, jdom-b9 and java 1.4.1_03.
> I'm very new to JDOM and it would be great if you u help me where to place =
> the Java files for this application. Thanks for sparing your precious tim=
> e.
> I'll look forward for your response.
>
> -sridhar.
>
> _______________________________________________
> 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