now able to call java from scala.