add java version to travis.yml