Openjdk6 no longer installs on trusty

https://travis-ci.org/pgjdbc/pgjdbc-jre6/jobs/553763575

See Install-jdk.sh failing for openjdk9 and 10 ; very likely to be the same set of problems caused by https://github.com/travis-ci/travis-cookbooks/issues/976 , as best I can tell what is happening.

Ya except I am able to get JDK7 to install here https://travis-ci.org/pgjdbc/pgjdbc-jre7/jobs/553783431

Is there a long term solution to this?

jdk7 and 8 are the only versions which have been stable for me over the last few weeks. (but I havent been using 13+)

which is a bit ironic because the installer script seems to only be CI tested on jdk9+

I guess the installer script will be enhanced soon, or an alternative implemented.

As per https://docs.travis-ci.com/user/reference/trusty#jvm-clojure-groovy-java-scala-images , you need to install OpenJDK 6 with apt:

OpenJDK 6 is not installed. To use OpenJDK 6, install openjdk-6-jdk package. For example, using apt addon:

addons:
  apt:
    packages:
      - openjdk-6-jdk
jdk: openjdk6

This has worked flawlessly up until the recent removal of Oracle jdk’s without apt packages

It is my experience that everything on docs.travis-ci.com wrt JDKs is outdated and mostly is incorrect due to https://github.com/travis-ci/travis-cookbooks/issues/976 . “In flux” seems to be the current situation. The big O company gets some of the blame, but it has been in the pipes for a long time.

According to the build history, the last successful build is dated 01.08.2017 and was run in the Precise environment. The last successful PR build installs the apt package manually.

It’s not even supposed to work at all in precise.
The most recent build does install it manually just so I could get it working.

I agree “in flux” seems to be correct.