Require java

Fixes #735