Test using jdk6 and jdk7 in travis CI