possible fix to java version testing