Updating OracleJDK 8 #3259

Open
FWest98 opened this Issue Feb 21, 2015 · 24 comments

Projects

None yet
@FWest98
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
Member

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
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.

@newca12 newca12 referenced this issue in newca12/TMDb-shelf Mar 7, 2015
Closed

Travis CI build broken #1

@ghost
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
Member

The next update will include Java 8u40.

@davidmoten

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

@BanzaiMan
Member

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.

@jpsacha jpsacha added a commit to scalafx/scalafx that referenced this issue May 2, 2015
@jpsacha jpsacha Try to use newest version of Java for TravisCI
TravisCI fails due to default outdated version of Java, it is still using 8u31.
Fix follows advise at: travis-ci/travis-ci#3259
bdb0a1a
@Thelonedevil Thelonedevil added a commit to Thelonedevil/OTBProject that referenced this issue May 21, 2015
@Thelonedevil Thelonedevil Followed advice from travis-ci/travis-ci#3259 to try and fix travis-c…
…i using an outdated java version

Signed-off-by: Justin Wiblin <justin_wiblin@hotmail.co.uk>
b51cd08
@lexs lexs referenced this issue in robolectric/robolectric May 26, 2015
Merged

Use invokedynamic for shadows and intrinsics #1840

@micheljung micheljung added a commit to FAForever/downlords-faf-client that referenced this issue Jun 19, 2015
@micheljung micheljung Using jdk8u40 NOW (travis-ci/travis-ci#3259) 2d91996
@wandernauta wandernauta referenced this issue in viskell/viskell Jul 5, 2015
Merged

Add function definition blocks #128

@hrj
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 hrj added a commit to hrj/abandon that referenced this issue Jul 29, 2015
@hrj hrj Avoid gui build until travis-ci is fixed
The Java version on travis is very old, causing compilation
errors in the gui sub-project.

More details at travis-ci/travis-ci#3259
d2b3c32
@talios talios added a commit to talios/javagadt that referenced this issue Aug 3, 2015
@talios talios Force upgrade of JDK bbf8592
@talios
talios commented Aug 3, 2015

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

@FibreFoX FibreFoX referenced this issue in javafx-maven-plugin/javafx-maven-plugin Aug 3, 2015
Merged

add integration-tests for new packager.jar-feature #141

@FibreFoX FibreFoX added a commit to FibreFoX/javafx-maven-plugin that referenced this issue Aug 3, 2015
@FibreFoX FibreFoX travis-ci: Force upgrade of JDK 01a510d
@DanielSperry DanielSperry added a commit to DanielSperry/orbit that referenced this issue Aug 5, 2015
@DanielSperry DanielSperry Using new jdk8 (travis-ci/travis-ci#3259) ea0f7f9
@dobesv
dobesv commented Aug 13, 2015

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

@dobesv
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
hrj commented Aug 14, 2015

👍 @dobesv

Thanks, that last comment worked for me!

@marcioendo marcioendo added a commit to objectos/core that referenced this issue Aug 16, 2015
@marcioendo marcioendo all: travis.yml
Initial travis CI script.

Had to install newer jdk8...

travis-ci/travis-ci#3259 (comment)
9fb4385
@jensgreen jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
@jensgreen jensgreen Travis CI support.
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
ff4a8dc
@jensgreen jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
@jensgreen jensgreen Travis CI support.
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
dffe659
@jensgreen jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
@jensgreen jensgreen Travis CI support.
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
5848fcb
@jensgreen jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
@jensgreen jensgreen Travis CI support.
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
baef3c5
@jensgreen jensgreen added a commit to jensgreen/EnergyBox that referenced this issue Aug 16, 2015
@jensgreen jensgreen Travis CI support.
Include hack to run JDK 8.40, see:
travis-ci/travis-ci#3259
24fc3db
@BanzaiMan BanzaiMan changed the title from What's the speed of upgrading to a new Java release? to Updating OracleJDK 8 Sep 2, 2015
@mperry mperry referenced this issue in Frege/frege Sep 24, 2015
Merged

Use latest jdk 8 on travis #178

@prohde
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.

@aslakhellesoy aslakhellesoy referenced this issue in cucumber/cucumber-jvm Oct 13, 2015
Closed

cucumber-java8 fails on OpenJDK 1.8.0 #912

@danhaywood danhaywood added a commit to isisaddons/isis-module-sessionlogger that referenced this issue Oct 15, 2015
@danhaywood danhaywood forcing new version of java, as per ... ee4edc4
@danhaywood danhaywood added a commit to isisaddons/isis-module-sessionlogger that referenced this issue Oct 15, 2015
@danhaywood danhaywood forcing new version of java, as per a later comment in... e0d8178
@danhaywood danhaywood added a commit to isisaddons/isis-module-sessionlogger that referenced this issue Oct 15, 2015
@danhaywood danhaywood forcing new version of java, as per a comments in... 6379676
@innovimax

👍

@FibreFoX

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

@FibreFoX FibreFoX referenced this issue in javafx-maven-plugin/javafx-maven-plugin Oct 23, 2015
Closed

experimental changes for travis #160

@hrj
hrj commented Oct 23, 2015

The new ubuntu 14.04 environment has Oracle JDK 8u51.

@FibreFoX FibreFoX added a commit to FibreFoX/javafx-maven-plugin that referenced this issue Oct 23, 2015
@FibreFoX FibreFoX using openjdk8 and oraclejdk8 via new travis-vm 651278a
@fpinjava

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

@FibreFoX

@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

@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.

@tberman tberman pushed a commit to nfl/graphql-rxjava that referenced this issue Nov 9, 2015
Todd Berman try fix from travis-ci/travis-ci#3259 for latest jdk 8f12a51
@jodastephen

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

@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 referenced this issue Nov 23, 2015
Closed

JavaFX #5081

@xea
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
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
Member

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.

@BanzaiMan BanzaiMan locked and limited conversation to collaborators Nov 25, 2015
@acnagy
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.

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