Fix java dependency