I have the file .travis.yml generated by JHipster and I would like to use adopt open jdk 12 for travis, but I can not set it. Update alternative doesn’t work, I always see error: resetting java alternatives and second error update-alternatives: error: no alternatives for mozilla-javaplugin.so And jdk is always OpenJDK 11 openjdk version “11.0.2” 2019-01-15 Answer Add below matrix