Adding java dependency.