adding java as dep