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

Add Java 9 to the list of available JVM #4178

Closed
xcoulon opened this issue Jul 3, 2015 · 10 comments
Closed

Add Java 9 to the list of available JVM #4178

xcoulon opened this issue Jul 3, 2015 · 10 comments

Comments

@xcoulon
Copy link

xcoulon commented Jul 3, 2015

Even thought Java 9 is not final yet, it would be great if we could build and test projects on it, especially when those projects are libraries or frameworks.

@juherr
Copy link

juherr commented Jul 5, 2015

👍

@BanzaiMan
Copy link
Contributor

Until we update the build environment (not yet scheduled), you can do this manually.

I've enabled Oracle Java 9 (travis-ci/apt-package-safelist@d69505b). You still need to set up your environment manually, but you can use it.

On containers:

sudo: false

addons:
  apt:
    packages:
      - oracle-java9-installer

before_install:
  - remove_dir_from_path $JAVA_HOME/bin
  - export JAVA_HOME=/usr/lib/jvm/java-9-oracle
  - export PATH=$JAVA_HOME/bin:$PATH
  - java -version

On standard infrastructure:

sudo: required

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install oracle-9-installer
  - remove_dir_from_path $JAVA_HOME/bin
  - export JAVA_HOME=/usr/lib/jvm/java-9-oracle
  - export PATH=$JAVA_HOME/bin:$PATH
  - java -version

@velo
Copy link

velo commented Feb 9, 2016

Is there a way to have build matrix with Java 8 and Java 9?

@wendal
Copy link

wendal commented Nov 14, 2016

any plan for this?

@garydgregory
Copy link

Ping?

@wendal
Copy link

wendal commented Apr 26, 2017

Pong

@robinst
Copy link

robinst commented Sep 27, 2017

Java 9 has been released now: https://docs.oracle.com/javase/9/

@jqno
Copy link

jqno commented Sep 27, 2017

According to https://docs.travis-ci.com/user/languages/java/ Java 9 is available: add oraclejdk9 to the build matrix. I tried it in my project and it works.

@BanzaiMan
Copy link
Contributor

Indeed.

@robinst
Copy link

robinst commented Sep 28, 2017

Doesn't work for me. I'll raise a different issue.

Edit: Raised #8513.

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

No branches or pull requests

8 participants