You will need junit4.jar, hamcrest-core.jar and hamcrest-library.jar in your Ant library path (probably /usr/share/ant/lib)