New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing java command when using openjdk6 with Trusty VM #8199

Closed
xerial opened this Issue Aug 2, 2017 · 8 comments

Comments

Projects
None yet
5 participants
@xerial
Copy link

xerial commented Aug 2, 2017

java command is not available when using openjdk6:

Because of this maven (mvn), which will try to run Java command, doesn't work with openjdk6.

According to the file list of openjdk6-jdk package for Trusty, java command is totally missing:
https://packages.ubuntu.com/en/trusty/amd64/openjdk-6-jdk/filelist

@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Aug 14, 2017

So, OpenJDK 6 does not work on Trusty at all?

@abelsromero

This comment has been minimized.

Copy link

abelsromero commented Aug 14, 2017

So, OpenJDK 6 does not work on Trusty at all?

Nor 6, nor 7 (https://travis-ci.org/abelsromero/asciidoctorj/jobs/261968385)

eed3si9n added a commit to eed3si9n/sbt that referenced this issue Aug 24, 2017

Use precise machines for Travis CI
PR validation to 0.13 branch is failing because Travis now defaults to Trusty, which does not seem to support openjdk6.

Ref travis-ci/travis-ci#8199
@rosslamont

This comment has been minimized.

Copy link

rosslamont commented Aug 28, 2017

I'm having this issue too for my fork of mojo-hays xml-maven-plugin. Seems the original must still be using precise, but my new fork picked trusty. I can't very easily justify modifying .travis.yml as it works fine for those guys.

@felixbarny

This comment has been minimized.

Copy link

felixbarny commented Sep 5, 2017

Any updates on this? Will java 6 eventually be supported on trusty vms?

@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Sep 5, 2017

OpenJDK 6 was removed from our Trusty images to save space.

If you need it, you can install openjdk-6-jdk package (which will also install openjdk-6-jre-headless, which provides the java command):

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

jdk: openjdk6
@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Sep 5, 2017

If you need to use this in a build matrix, remove openjdk6 from jdk key, then add:

matrix:
  include:
    - addons:
        apt:
          packages:
            - openjdk-6-jdk
      jdk: openjdk6
@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Sep 5, 2017

We need to document this. See travis-ci/docs-travis-ci-com#1430.

@BanzaiMan BanzaiMan added the docs label Sep 5, 2017

kaitoy added a commit to kaitoy/pcap4j that referenced this issue Sep 17, 2017

stefanbirkner added a commit to stefanbirkner/system-rules that referenced this issue Sep 19, 2017

Install OpenJDK 6
Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

stefanbirkner added a commit to stefanbirkner/system-rules that referenced this issue Sep 20, 2017

Install OpenJDK 6
Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

stefanbirkner added a commit to stefanbirkner/system-rules that referenced this issue Sep 20, 2017

Install OpenJDK 6
Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

stefanbirkner added a commit to stefanbirkner/system-rules that referenced this issue Sep 20, 2017

Install OpenJDK 6
Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

sfuhrm added a commit to sfuhrm/html2sax that referenced this issue Oct 25, 2017

Fix for missing OpenJDK 6
Travis CI dropped OpenJDK 6 out of their image:
travis-ci/travis-ci#8199

stefanbirkner added a commit to stefanbirkner/fishbowl that referenced this issue Oct 31, 2017

Install OpenJDK 6 on Travis CI
Travis CI switched from Ubuntu Precise images to Ubuntu Trusty images.
The Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

stefanbirkner added a commit to stefanbirkner/picover that referenced this issue Oct 31, 2017

Install OpenJDK 6 on Travis CI
Travis CI switched from Ubuntu Precise images to Ubuntu Trusty images.
The Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

blsemo added a commit to blsemo/ed25519-java that referenced this issue Nov 30, 2017

Remove oraclejdk7 (no longer available, see travis-ci/travis-ci#7964)…
…, and add command to pull openjdk6 (no longer installed by default, see travis-ci/travis-ci#8199)

str4d added a commit to str4d/ed25519-java that referenced this issue Dec 2, 2017

Install openjdk-6-jdk for testing
It was removed from the default Travis CI image. See travis-ci/travis-ci#8199
for details.

dpaukov added a commit to dpaukov/combinatoricslib that referenced this issue Jan 22, 2018

Install OpenJDK 6 for Travis
Trusty images on Travis doesn't have OpenJDK 6 installed by default. See travis-ci/travis-ci#8199

dpaukov added a commit to dpaukov/combinatoricslib that referenced this issue Jan 22, 2018

dpaukov added a commit to dpaukov/combinatoricslib that referenced this issue Jan 22, 2018

@kasecato kasecato referenced this issue Feb 25, 2018

Merged

Add oraclejdk9 #13

dpaukov added a commit to dpaukov/classic-cherries that referenced this issue Mar 5, 2018

h0l0gram added a commit to h0l0gram/wicket-bootstrap that referenced this issue Mar 8, 2018

sebasjm pushed a commit to sebasjm/junit4 that referenced this issue Mar 11, 2018

Install OpenJDK 6 on Travis
Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
Trusty images don't have installed OpenJDK 6 by default. See
travis-ci/travis-ci#8199

martin-g added a commit to l0rdn1kk0n/wicket-bootstrap that referenced this issue Mar 12, 2018

@stale

This comment has been minimized.

Copy link

stale bot commented Apr 13, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Apr 13, 2018

@stale stale bot closed this Apr 15, 2018

toomasr added a commit to zeroturnaround/zt-zip that referenced this issue Apr 24, 2018

Manually installing OpenJDK6 on Travis testing
Based on travis-ci/travis-ci#8199
changing around the Travis script a little.

unix-junkie added a commit to unix-junkie/jsr255 that referenced this issue Nov 2, 2018

rherrmann added a commit to rherrmann/com.codeaffine.archive that referenced this issue Jan 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment