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 support for Java 9 #462

Closed
pditommaso opened this issue Sep 22, 2017 · 8 comments
Closed

Add support for Java 9 #462

pditommaso opened this issue Sep 22, 2017 · 8 comments
Milestone

Comments

@pditommaso
Copy link
Member

pditommaso commented Sep 22, 2017

Investigate the changes needed to support latest the latest release of Java which introduces some breaking changes with the existing code base.

See https://docs.oracle.com/javase/9/migrate/toc.htm

@richardjdavies
Copy link

The first problem is with the version string check at https://github.com/nextflow-io/nextflow/blob/master/nextflow#L276

This works for Java 8 on Ubuntu 16.04.3 LTS:

$ /usr/lib/jvm/java-8-openjdk-amd64/bin/java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

But fails for Java 9 on Ubuntu 16.04.3 LTS:

$ /usr/lib/jvm/java-9-openjdk-amd64/bin/java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)

@richardjdavies
Copy link

The error given with Java 9 is:

$ wget -qO- get.nextflow.io | bash
Error: cannot find Java or it's a wrong version -- please make sure that Java 7 or higher it's installed
Note: Nextflow is trying to use the Java VM defined by the following environment variables:
 JAVA_CMD: /usr/bin/java
 JAVA_HOME: 

@pditommaso
Copy link
Member Author

Thanks for reporting this. We have already a branch supporting Java 9. We are planning to release along with the deprecation of Java 7 with the version following the next (around December).

@richardjdavies
Copy link

Which is the Java 9 branch, please?

@pditommaso
Copy link
Member Author

@pditommaso
Copy link
Member Author

Included in version 0.26.0-beta5

@sjackman
Copy link

Nextflow 0.27.6 prints this message when run with Java 9.

WARN: Nextflow support for Java 9 is still in beta stage and some advanced features are not supported
WARN: It is suggested the use of Java version 8

Any timeline on when this warning may be removed and Java 9 fully supported?

@pditommaso
Copy link
Member Author

pditommaso commented Feb 21, 2018

I guess in a couple of mounts. It mainly depends when Apache Ignite will ship the support for Java 9. It is expected in the upcoming 2.4 release.

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

No branches or pull requests

3 participants