[jdom-interest] Request for help: getting started ...

philip.nelson at omniresources.com philip.nelson at omniresources.com
Thu Aug 16 06:24:42 PDT 2001


> I am having trouble building the PrettyPrinter class documented in
> http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom-2.html
> 
> 1) I downloaded and installed jdk1.3.1 and jdom-b7
> 
> 2) I set my CLASSPATH as follows:
> % echo $CLASSPATH
> .:/home/bobt/apps/jdom-b7/lib:/home/bobt/apps/jdom-b7/build:/h
ome/bobt/apps/
> jdom-b7/build/classes:/home/bobt/apps/jdk1.3.1/lib

The only directory you can just copy a jar file is the jre/lib/ext (unless
you write a little code to load all the jars in a directory).  

Really I don't recommend that because it seems to mess people up more often
that it helps because they forget they put it there.  The normal alternative
is to put the full path to the jar file in the classpath.  Think of a jar
file as a directory.



More information about the jdom-interest mailing list