I was having great trouble using XML and J2EE. Here is a list of things you might like to try.
You need to download J2EE from sun. You can download it form this URL
http://java.sun.com/j2ee/1.4/download.html#sdk
If you have downloaded it, and installed it correctly (I suggest it possible, using the default install path as any tutorials on Sun's website use these paths), (Ensuring the classpaths are set as follows: (Platform independent)
(Under windows use %variable%)
$JAVA_HOME=/path/to/your/already/installed/javaSDK (Default is directory u ran bin file from on Linux. On Windows C:\j2sdk_version)
$J2EE_HOME=/opt/SUNWappserver/ (Linux) C:\sun\appserver (I think, can't remember!)
$ANT_HOME = J2EE_HOME/lib/ant/
and add the following to your path (IE The directories looked for when executing)
PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$ANT_HOME/bin you can (Under Linux) store these in /etc/profiles OR (If u don't have root access) create a .bash_profile and add the above. Windows you need admin privileges, and I can't remember how to solve it if u don't.
When this has done, the XML jar files I was looking for (SAX, and Xerces) were found in $ANT_HOME/lib/xml-apis.jar
HTH
---
David Thorne, Student
UK