Revert "build: Don't stop if JDK version doesn't match"

This reverts commit 60d8c522a79684f78bd5cebd2c8bbf8aaf9b060d.

Change-Id: I9cb118968b413e7307d6acab2d0f87bae05465a3