Skip to content
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

Updating OracleJDK 8 #3259

Closed
FWest98 opened this issue Feb 21, 2015 · 25 comments
Closed

Updating OracleJDK 8 #3259

FWest98 opened this issue Feb 21, 2015 · 25 comments

Comments

@FWest98
Copy link

FWest98 commented Feb 21, 2015

Due to a bug in the JDK (8u31, https://bugs.openjdk.java.net/browse/JDK-8044546) I'm unable to build my Android app. I had to disable Travis for my repository.
As this problem is fixed in 8u40, which is planned for March, I was wondering how long it takes before Travis runs the new Java version.
Another question, isn't there a way to force a specific Java update in the Travis build?

@BanzaiMan
Copy link
Contributor

We currently rely on https://launchpad.net/~webupd8team/+archive/ubuntu/java to provide Oracle JDK 8. There is work underway to bring OpenJDK 8, too, but I'm not sure when it'll have 8u40.

The next scheduled build environment update is early April.

If you can find a PPA to supply a JDK 8 package, you can use sudo apt-get … to get your environment set up for your builds.

@ssaring
Copy link

ssaring commented Mar 6, 2015

The repository https://launchpad.net/~webupd8team/+archive/ubuntu/java now provides Oracle Java SE 8u40 packages. It would be great when they could get installed on the Travis systems, my project depends on the new JavaFX API introduced in this Java version.

@ghost
Copy link

ghost commented Apr 9, 2015

Now, you can use linuxbrew to install JDK 8_40.
I use the following script to build and test SBT application.

before_install:
    - rm -rf ~/.linuxbrew
    - yes | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
    - export PATH="$HOME/.linuxbrew/bin:$PATH"
    - export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
    - export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
    - brew install jdk
    - brew install scala
    - brew install sbt
script:
    - sbt test

@BanzaiMan
Copy link
Contributor

The next update will include Java 8u40.

@davidmoten
Copy link

good to hear, my builds are breaking also for this reason. When is the next update?

@BanzaiMan
Copy link
Contributor

We've had to postpone the April update. It will be announced in http://docs.travis-ci.com/user/build-environment-updates/2015-04-09/ and the mailing list (see http://docs.travis-ci.com/user/build-environment-updates/).

While we did that, 8u45 became available, so the update will contain that.

If you need 8u45 now, you can use the standard infrastructure and do something like:

language: java

sudo: required

jdk:
  - oraclejdk8

install: true

script:
  - sudo apt-get update && sudo apt-get install oracle-java8-installer
  - java -version

I haven't tested this on non-java image; not clear if it works there.

@hrj
Copy link

hrj commented Jul 28, 2015

Ping! Any updates?

The latest java release from oracle is 8u51. My builds are failing too because of the older version in travis.

hrj added a commit to hrj/abandon that referenced this issue Jul 29, 2015
The Java version on travis is very old, causing compilation
errors in the gui sub-project.

More details at travis-ci/travis-ci#3259
talios added a commit to talios/datatyper that referenced this issue Aug 3, 2015
@talios
Copy link

talios commented Aug 3, 2015

+1 on this. Just switched to Travis for a project and hitting this :(

@dobesv
Copy link

dobesv commented Aug 13, 2015

The solution by @BanzaiMan worked for me after I removed sudo: false in my .travis.yml

@dobesv
Copy link

dobesv commented Aug 13, 2015

To make this work on the "new container based infrastructure" add this to your travis.yml:

sudo: false
addons:
  apt:
    packages:
      - oracle-java8-installer

@hrj
Copy link

hrj commented Aug 14, 2015

👍 @dobesv

Thanks, that last comment worked for me!

jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
@prohde
Copy link

prohde commented Oct 9, 2015

I needed way to much commits to get my build passed. I would appreciate if at least JDK 8u40 would be installed.

mantkiew added a commit to gsdlab/chocosolver that referenced this issue Oct 13, 2015
danhaywood added a commit to isisaddons-legacy/isis-module-sessionlogger that referenced this issue Oct 15, 2015
danhaywood added a commit to isisaddons-legacy/isis-module-sessionlogger that referenced this issue Oct 15, 2015
danhaywood added a commit to isisaddons-legacy/isis-module-sessionlogger that referenced this issue Oct 15, 2015
@innovimax
Copy link

👍

@FibreFoX
Copy link

Any progress on this? Is there any ETA for this feature?

@hrj
Copy link

hrj commented Oct 23, 2015

The new ubuntu 14.04 environment has Oracle JDK 8u51.

FibreFoX added a commit to FibreFoX/javafx-maven-plugin that referenced this issue Oct 23, 2015
@fpinjava
Copy link

Travis is still building with 1.8.0_31 when the current version is now 1.8.0_66 !

@FibreFoX
Copy link

@fpinjava like suggested in the comment above the new "beta-"ubuntu does come with OracleJDK "1.8.0_51" and OpenJDK "1.8.0_45-internal", which is good, but does run slow (because they are not the "new container based infrastructure")

just change your travis-file by adding this:

sudo: required
dist: trusty

@hrj do you know any trick to get openjfx installed aswell? javafx is part of oracleJDK, but not on openjdk ... and thats what I need currently

@fpinjava
Copy link

@FibreFoX I need to check the build with the last version of the JDK, which I do by downloading it. The only problem is that it can't be done (at this time) in a container because sudo is not supported.

@jodastephen
Copy link

It is very unfortunate to see this issue languishing on Travis. JDK 8u31 is very old. It predates the critical 8u40 release when the worst of the lambda compilation bugs were fixed. For many projects, running on JDK 8 is not feasible - it has to be 8u40 or later.

While there are obviously workarounds, they slow down the build and put more strain on Travis' servers than necessary.

Given that it looks like there has been no update in a year now, it also leaves a question over the health of Travis more generally.

@codylerum
Copy link

@jodastephen brings up a good point regarding the health of Travis. No updates to the build env since April? http://docs.travis-ci.com/user/build-environment-updates/

@xea xea mentioned this issue Nov 23, 2015
@xea
Copy link

xea commented Nov 25, 2015

Can we get an ETA on this, please, as I assume updating the JDK will eventually happen some time soon?

@z3ntu
Copy link

z3ntu commented Nov 25, 2015

Why is it still 1.8.0_31 ? btw using the "Trusty Beta" gets you 1.8.0_51 with oraclejdk8

@BanzaiMan
Copy link
Contributor

Sorry about the delay. We are working on the next update, which should fix this issue. There are a few housekeeping issues we need to take care of before we can roll it out.

We hope to have an announcement soon. I am locking this issue in the meantime.

@travis-ci travis-ci locked and limited conversation to collaborators Nov 25, 2015
@acnagy
Copy link

acnagy commented Aug 30, 2016

Hey everyone - thanks for your patience. Just wanted to update that the newer sudo: required GCE images now have OracleJDK 8. To answer @z3ntu's concern above, specifically, Trusty now has 1.8u101. The Docker image, however, is still a bit behind so @dobesv's suggestion is still good.

@BanzaiMan
Copy link
Contributor

I think this can be closed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests