Fix java wrapping dependencies.