Require Java.

only do this in files that actually use java.