Depend on the correct Java version

The Oracle JVM has a different package name, which will be addressed
in a future commit.