Ensure that a full build is done before test_java.