set java 8 for travis-ci