-
Notifications
You must be signed in to change notification settings - Fork 721
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
Support Oracle JDK9 EA #5520
Comments
The This is however not "production ready" at all (e.g. the jdk9 project is still in an "unstable" phase, the webupd8 apt package is not complete yet, etc). See also http://openjdk.java.net/projects/jdk9/ for the own OpenJDK9 schedule. But the good news is that If you don't fear to play with an unstable environment, you can give a try with the upcoming platform, which already includes a preinstalled JDK "9-ea". You simply have to update your
and you get it 😺 @gsmet if you try this "alpha" environment, please be aware that the maven configuration on this system is broken with JDK9. There might be other integration troubles, and your feedbacks will be very welcome 😄 |
Thanks for your feedback. I spotted a typo here (probably harmless): We indeed do use Maven. Is there a way to fix the Maven configuration by some magic? My main issue with the Trusty infrastructure is that it looks like the cache is not supported for public repositories (https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments) and caching the Thanks! |
@gsmet thanks for the good catch (now fixed) We'll first validate JDK9-EA in Trusty environment, and I suppose that the Docker-based environment will only be updated when things get really stable. Not having file caching is of course a disadvantage, but it would be great if you try to already integrate on a distinct "testing" branch. If you want to try JDK9-EA with Maven anyway, you have to take care of the following points:
|
Any update on this? I get this error:
When using:
|
@gsmet Were you able to get jdk9 working? |
I was able to build maven project via jdk9-ea, however the VM takes forever to boot from time to time. For instance: https://travis-ci.org/pgjdbc/pgjdbc/builds/130389303 |
Just in case, approach from #4178 (comment) worked for me to install jdk9-ea in Travis docker environment. The drawback is jdk column reads "jdk8", otherwise it works. Being able to just use oraclejdk9 would be good. |
Are there any plans for supporting OpenJDK 9? I would be happy to contribute. |
Is there any progress on it? I receive: |
Ok, after setting of all 4 properties the JDK 9 was used. But it used Gradle 2.13 which does not support JDK 9. The minimum version would be 3.0 better is 3.1. With JDK 7 and 8 there is a java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder |
Attempting to enable Java 9 following the advice on [issue 5520](travis-ci/travis-ci#5520 (comment)) has resulted in the JDK 8 link that JAVA_HOME points to being intermittently deleted. Alternative advice on [issue 5897](travis-ci/travis-ci#5897 (comment)) appears to be more reliable.
JDK9 is about to be released in July 2017 and we'd like to test our maven project against Java 9. sudo: required
dist: precise
group: edge
jdk:
- oraclejdk7
- oraclejdk8
- oraclejdk9
matrix:
allow_failures:
- jdk: oraclejdk9 only changed This results in https://travis-ci.org/IDPF/epubcheck/jobs/239966376
Also maven doesn't try to pick up Java 9:
What's the best solution currently to test a maven project with java 9? |
FWIW, Java 9 has a proposal to slip to September to resolve the module
system issues.
Gary
…On Jun 6, 2017 6:39 AM, "Tobias Fischer" ***@***.***> wrote:
JDK9 is about to be released in July 2017 and we'd like to test our maven
project against Java 9.
However, we don't get it working with the solution mentioned above:
sudo: requireddist: precisegroup: edgejdk:
- oraclejdk7
- oraclejdk8
- oraclejdk9matrix:
allow_failures:
- jdk: oraclejdk9
*only changed dist from trusty to precise since that's the default system
on Travis in the meantime...*
This results in https://travis-ci.org/IDPF/epubcheck/jobs/239966376
$ jdk_switcher use oraclejdk9
Sorry, but JDK 'oraclejdk9' is not known.
The command "jdk_switcher use oraclejdk9" failed and exited with 1 during .
Also maven doesn't try to pick up Java 9:
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
What's the best solution currently to test a maven project with java 9?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5520 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIfN7Hb83dPjyGXwrjaSRDUKFPyaR0Hks5sBVZ9gaJpZM4HN2um>
.
|
Thanks Gary, good to know! Update to my question: it works when using |
According to https://launchpad.net/~webupd8team/+archive/ubuntu/java?field.series_filter=trusty jdk-9+175 should be provided by |
The following currently does not work for me
the log shows
Adding
from #7253 (comment) solves the issue. |
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 |
Hi,
I'm working on having a Travis based build for Hibernate Search and we are willing to test Search against JDK9 EA to provide feedback to the JDK team.
The JDK9 is installable through the apt addons and the oracle-java9-installer package but the JDK switcher does not support it atm:
Would it be possible to support it soon?
Thanks.
Guillaume
The text was updated successfully, but these errors were encountered: