Last updated: 6 Oct 2009Many Java-related tools are available to use. Theyare distributed as Java .jar (Java Archive)files, and on Windows can be found in this directory:G:\javatoolsYou can use these tools by setting your classpathenvironment variableto refer to the the current directory (".") and the directorycontaining the tool.You may also find help here for setting up Eclipse touse jar files.The current list of tools is (some have several jar files in the directory):antClass Path:G:\javatools\apache-ant-1.7.0\lib\ant.jarHttpUnitClass Path:G:\javatools\httpunit-1.6.2\lib\httpunit.jarJUnitClass Path:G:\javatools\junit4.4\junit-4.4.jarXalan-JavaClass Path:G:\javatools\xalan-j_2_7_0\xalan.jar;G:\javatools\xalan-j_2_7_0\xml-apis.jarXerces-JavaClass Path:G:\javatools\xerces-2_9_0\xercesImpl.jar;G:\javatools\xerces-2_9_0\xml-apis.jarJOGL: Java Bindings for OpenGL -1.1.1Class Path:G:\javatools\jogl-1.1.1-windows-i586\lib\jogl.jarIf you want to run the demos, you will need to add to your classpath:
Code The following are Java examples that show how to manipulate XML data in a programming environment. All require a few Java archives which can be found in EXIST_HOME/lib. SAX and DOM examples. A simple SAX example, and two very simple DOM programs. The SAX examples shows a content handler, and how to use it. The first DOM example serializes a DOM tree (don't use it in a real application!), and the second one modifies an XML document. See the comments. You must add the Xerces.jar archive in your CLASSPATH (look at EXIST_HOME/lib/endorsed). SaxHandler.java, SaxExample.java DomSerializer.java DomPreorder.java The Xalan XSLT processor. The following example comes from the Xalan distribution. It shows how to apply an XSLT transformation to an XML document via the Xalan/Java API.
You must add the xalan.jar, xercesImpl.jar, xml-apis.jar and serializer.jar archives in your classpath. SimpleTransform.java, which applies birds.xsl to birds.xml. See the Xalan site for further examples and explanations. XML:DB (using eXist) examples. The following sample programs show how to access the eXist XML database. You must add the exist.jar, xmldb.jar, xmlrpc-1.2-patched.jar, and log4j-1.2.14.jar archives in your CLASSPATH. See the book appendix for further explanations, as well as the eXist documentation. ExistAccess.java ExistQuery.java Lucene examples. MyLucene.java Simple.java Hadoop MapReduce. Authors.java (the map and reduce jobs) AuthorsJob.java XProc. skeleton.xpl
38c6e68cf9