Install jdk and make the test pass