-
Notifications
You must be signed in to change notification settings - Fork 723
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
Comments
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 |
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. |
Now, you can use
|
The next update will include Java 8u40. |
good to hear, my builds are breaking also for this reason. When is the next update? |
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. |
TravisCI fails due to default outdated version of Java, it is still using 8u31. Fix follows advise at: travis-ci/travis-ci#3259
Ping! Any updates? The latest java release from oracle is 8u51. My builds are failing too because of the older version in travis. |
The Java version on travis is very old, causing compilation errors in the gui sub-project. More details at travis-ci/travis-ci#3259
+1 on this. Just switched to Travis for a project and hitting this :( |
The solution by @BanzaiMan worked for me after I removed |
To make this work on the "new container based infrastructure" add this to your travis.yml:
|
👍 @dobesv Thanks, that last comment worked for me! |
Include hack to run JDK 8.40, see: travis-ci/travis-ci#3259
Include hack to run JDK 8.40, see: travis-ci/travis-ci#3259
Include hack to run JDK 8.40, see: travis-ci/travis-ci#3259
Include hack to run JDK 8.40, see: travis-ci/travis-ci#3259
Include hack to run JDK 8.40, see: travis-ci/travis-ci#3259
I needed way to much commits to get my build passed. I would appreciate if at least JDK 8u40 would be installed. |
👍 |
Any progress on this? Is there any ETA for this feature? |
The new ubuntu 14.04 environment has Oracle JDK 8u51. |
Travis is still building with 1.8.0_31 when the current version is now 1.8.0_66 ! |
@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:
@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 |
@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. |
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. |
@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/ |
Can we get an ETA on this, please, as I assume updating the JDK will eventually happen some time soon? |
Why is it still 1.8.0_31 ? btw using the "Trusty Beta" gets you 1.8.0_51 with oraclejdk8 |
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. |
Hey everyone - thanks for your patience. Just wanted to update that the newer |
I think this can be closed now. |
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?
The text was updated successfully, but these errors were encountered: