java: Make bindtests depend on jar file so parallel builds work.

This fixes commit c36ced5e21348f5357fc70b402664c9a5d827b06.
Version 1.21.24.