Simplify Java8 test & handle Unsupported major.minor vers exception.