java tests: require java compiler more properly * tests/java-extra.test: Use "required=javac" instead of an ad-hoc configure check. * tests/java-noinst.test: Likewise.