Install java from cask.