Fix the Java build for automake 1.14.

refs #841, #599