Skip to content
Advertisement

How I can specify the version of JDK for travis CI

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.

JavaScript

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

Advertisement

Answer

Add below matrix with adopt version, also add JAVA_HOME correctly.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement