Revert "Remove openjdk check"

This reverts commit 2d5fc96ef00ed12b04f7e03edd4e10889875bcf9.