Enabling java dependency