Java binding: fix missing dependency

Problem occurs when doing parallel make i.e. `make -j4`