File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes how to set classpath for JDOM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how to set classpath for JDOM" Watch "how to set classpath for JDOM" New topic

how to set classpath for JDOM

prabhu palanisamy

Joined: Oct 30, 2000
Posts: 27
hi all,
i have loaded JDOM.what is the classpath that should i set?
or should i use that build.bat file.
help me.
thanx in advance
Sameer Rao

Joined: Oct 12, 2000
Posts: 20
Hi Prabhu,
JDOM comes with a jdom.jar and xerces.jar files. Those are all you need to use if for parsing xml documents. If you have the source code and want to use the Build.bat/sh file to build the binaries again, its still ok. If you build the binaries, then it is better to have the new jdom1-b-4.jar (something by similar name) and the xerces.jar files in the CLASSPATH and remove any other xerces.jar or jdom.jar from the CLASSPATH.
Also, some books have the following code:
org.jdom.inpout. Builder builder = new
Document doc = File(args[0]));
Now if you unarcheive the jdom.jar or look in the source files
under org/jdom/input fodler there's no nor does
the declaration of DOMBuilder says that it extends Builder.
Hence it might be good to use DOMBiulder builder = new
These are a couple of things that I experienced with Jdom.
Do share ur exp.
Hope this helps...


prabhu palanisamy

Joined: Oct 30, 2000
Posts: 27
hi sameer,
thanx for ur response,i cleared my problem,the problem was having one more its fine.
i'll surely share my experience
I agree. Here's the link:
subject: how to set classpath for JDOM
It's not a secret anymore!