Add different JDKs to travis.yml.