Adapt java-classes integ to test for target/classes availability [IMMUTANT-334]

This was part of the original intent of this class, but the class was
moved to classes/ for a vague reason:
https://github.com/immutant/immutant/commit/a3f567bab9203bbe291f76e4b3add2af16886dc3