Java binding: fix missing dependency