Hello all,
I'm having some serious trouble just getting Xerces to compile programs. I'm using the newest version of Java, and also the newest version of Xerces. I compile Xerces from source by first untarring the src tar file into a directory, then untarring the tools tar into the same directory. I require dom3 support so I built xerces using ./build.sh jars-dom3. I also require jdom support, so I went thru the appropriate steps to build jdom. This has all gone without a hitch, its when I try to use them that the errors come about.
I created a bash script to compile my program, basically it sets up all of my environment variables and then compiles the source files, it looks similar to the following:
#!/bin/sh
JAVA_HOME=/survey/java/j2sdk1.4.1
JDOM_HOME=/survey/jdom/jdom-b9/build
XERCES_HOME=/survey/xerces/xerces-2_5_0/build
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$XERCES_HOME/dom3-xml-apis.jar:$XERCES_HOME/dom3-xercesImpl.jar:$XERCES_HOME/xercesSamples.jar:$XERCES_HOME/classes:
$JDOM_HOME/jdom.jar:$JDOM_HOME/classes
export JAVA_HOME JDOM_HOME XERCES_HOME PATH CLASSPATH
javac *.java
This bash script is inside of a directory that contains all of the .java files I am concerned with compiling. I simply run the script, and I'm supposing that it should first export the appropriate environment variables, then compile the files, however, when I compile this, I get a ton of errors all xerces based. Everything from it not being able to find certain methods of classes (including the normalizeDocument and getConfig methods of the Document class), to it not being able to even find certain classes I'm trying to import (DOMBuilder).
Is there something I'm missing here?
Thanks,
Nate
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
