logo_michael-thomas.jpg (3143 bytes)

JDOM

Tutorial (under construction)

bulletCreate a directory which will contain your Java XML install files.
bullet"javaxml" - This is the directory name I created and I've used in this tutorial.
bulletCompile & Run notes
bulletJDK lib\ext vs CLASSPATH - If using JDK1.2 or JDK1.3 you can copy .jar files into the $JAVA_HOME\jre\lib\ext directory so that commands "javac" and "java" will find the  .jar files without setting the CLASSPATH.  With JDK1.1 you must modify your CLASSPATH to include these files when compiling and running.  You can also use the CLASSPATH with later versions of the JDK if you prefer.
bulletSystem environment variable: path
bullet 
bulletNote:  When I state "copy the following .jar files to the jre\lib\ext directory" you can use this approach or the CLASSPATH approach.
bulletInstall JDOM (includes Xerces)
bulletDownload JDOM
bulletExtract into the javaxml directory.
bulletCopy the following .jar files to the jre\lib\ext directory: jdom.jar (located in the "build" directory of the JDOM install: ie jdom-b6\build)
bulletJava Notes
bulletjdom.jar packages: org/jdom, org/jdom/input, org/jdom/output, org/jdom/adapters
bulletxerces.jar packages (in \lib): javax/xml/parsers, org/apache/html/dom, org/apache/wml, org/apache/xerces/..., org/apache/xml/serialize, org/w3c/dom/..., org/xml/sax/...,      
bulletInstall JAXP
bulletDownload JAXP
bulletExtract into the "javaxml" directory.
bulletCopy the following .jar files to the jre\lib\ext directory: jaxp.jar, crimson.jar, xalan.jar (in the root directory of your JAXP install: ie jaxp-1.1)
bulletJava Notes
bulletjaxp.jar packages: javax/xml/parsers, javax/xml/transform, javax/xml/transform/dom, javax/xml/transform/sax, javax/xml/transform/stream
bulletcrimson.jar packages: org/apache/crimson/tree, org/apache/crimson/jaxp, org/apache/crimson/parser,  org/apache/crimson/util, org/w3/dom, org/xml/sax/...
bulletxalan.jar packages: javax/xml/parsers,  javax/xml/transform, javax/xml/transform/dom, javax/xml/transform/sax, javax/xml/transform/stream, org/apache/xalan/..., org/apache/xml/utils/..., org/apache/xpath/..., org/w3c/dom, org/xml/sax/...,

Optional XML installs

bulletInstall Xerces (optional)
bulletJava Notes
bulletxerces.jar packages: org/xml/sax/..., org/w3c/dom/..., org/apache/xml/serialize, org/apache/xerces/..., org/apache/wml/..., org/apache/html/dom, javax/xml/parsers
bulletInstall Xalan (optional)
bulletJava Notes
bulletxalan.jar packages: