/usr/share/java/hamcrest-all.jar is in libhamcrest-java 1.3-6.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/java/hamcrest-all-1.3.jar
/usr/share/java/hamcrest-all-1.3.jar