Revert "build: allow Oracle JDK on Linux"

This reverts commit 6365f30cb192a735e865434c1fb62c99af899d1e.