Fix java task.