Just put them first in the path element
<path id="test.classpath"> <fileset dir="lib/test" /> <fileset dir="lib/" /> </path>
Dear Pete, thank you so much for your help!