Class not def problem has been fixed. I assumed jar files would be picked up from jre\lib\ext when running postXML. This was not the case. It worked when I specified the classpath in my batch file when running postXML.
Thanks for your suggestions Michael Becke. Diana