Compile with jdk7 and jdk8 in Travis-ci