Fixed java versions for travis config.