Changed jdk version to 7 to attempt to fix a build error in travis.