Updated travis.yml for java