Only support Oracle JDK 7 and 8, not OpenJDK