• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

how to set classpath for JDOM

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
org.jdom.input.DOMBuilder();
Document doc = builder.build(new File(args[0]));
Now if you unarcheive the jdom.jar or look in the source files
under org/jdom/input fodler there's no Builder.java nor does
the declaration of DOMBuilder says that it extends Builder.
Hence it might be good to use DOMBiulder builder = new
DOMBuilder().
These are a couple of things that I experienced with Jdom.
Do share ur exp.
Hope this helps...



------------------
_SvR_
 
prabhu palanisamy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi sameer,
thanx for ur response,i cleared my problem,the problem was having one more xerces.jar.now its fine.
i'll surely share my experience
cheers,
prabhu.
 
reply
    Bookmark Topic Watch Topic
  • New Topic