add java dependency