Ensure we install java first before installing the package