Changed travis config to use java 8.