Fixed broken travis-ci jdk8 build