--- a/ant/build.xml
+++ b/ant/build.xml
@@ -40,10 +40,9 @@
         <available classname="java.lang.Annotation" property="src.version" value="1.5"/>
         <available classname="java.lang.Annotation" property="target.version" value="1.5"/>
         <path id="build.classpath">
-            <fileset dir="${basedir}/lib/">
-                <include name="${jcommon.name}-${jcommon.version}.jar"/>
-                <include name="servlet.jar"/>
-            </fileset>
+            <pathelement location="${jcommon.jar}"/>
+            <pathelement location="${servlet.jar}"/>
+            <pathelement location="${gnujaxp.jar}"/>
         </path>
 
     </target>
@@ -321,7 +320,7 @@
 
     <!-- COMPILE THE JUNIT TESTS. -->
     <target name="compile-tests"
-            depends="compile,compile-experimental"
+            depends="initialise"
             description="Compile the test code">
 
         <mkdir dir="${basedir}/build-tests"/>
