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

Building on OpenJDK 11 fails #82

Closed
jgriss opened this issue Apr 10, 2019 · 8 comments
Closed

Building on OpenJDK 11 fails #82

jgriss opened this issue Apr 10, 2019 · 8 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on
Milestone

Comments

@jgriss
Copy link
Member

jgriss commented Apr 10, 2019

This issue comes up on CircleCI and on Travis. When using Java > 9 the build throws the following error:

Could not resolve dependencies for project org.spectra.cluster:spectra-cluster:jar:2.0.0-SNAPSHOT: Could not find artifact com.sun.java:tools:jar:11.0.2 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar
@jgriss jgriss added the bug Something isn't working label Apr 10, 2019
@jgriss jgriss added this to the version 0.01 milestone Apr 10, 2019
@jgriss jgriss self-assigned this Apr 10, 2019
@ypriverol
Copy link
Member

Should we remove for now 9.0 ?

@jgriss
Copy link
Member Author

jgriss commented Apr 10, 2019

I found the reason (after a lot of searching) here https://stackoverflow.com/questions/53707666/how-to-get-tools-jar-for-openjdk-11-on-windows:

It was removed in JDK 9.
JEP 220 removed the well-known and frequently-referenced JARs rt.jar and tools.jar. According to it's description, "The class and resource files previously stored in lib/rt.jar, lib/tools.jar, lib/dt.jar, and various other internal jar files will now be stored in a more efficient format in implementation-specific files in the lib directory.

This means that some of our libraries uses tools.jar - I'm now in the process of finding out which one. We should update it or remove it

@jgriss
Copy link
Member Author

jgriss commented Apr 10, 2019

It's here:

+- net.openhft:chronicle-map:jar:3.16.4:compile
[INFO] |  +- net.openhft:chronicle-core:jar:1.16.28:compile
[INFO] |  +- net.openhft:chronicle-values:jar:2.16.1:compile
[INFO] |  |  +- com.sun.java:tools:jar:1.8.0_201:system

@jgriss
Copy link
Member Author

jgriss commented Apr 10, 2019

Fixing this now. We have a lot of unused dependencies in our pom file. Removing them.

@jgriss
Copy link
Member Author

jgriss commented Apr 10, 2019

@ypriverol Could you try changing the dependency of pgiotk to ChronicleMap 3.17.1
The current one used requires Java 8

@ypriverol
Copy link
Member

Done!!!

@jgriss
Copy link
Member Author

jgriss commented Apr 10, 2019

I've re-started the travis tests with OpenJDK 10 and 11 - let's see

@jgriss jgriss added the wontfix This will not be worked on label Apr 10, 2019
@jgriss
Copy link
Member Author

jgriss commented Apr 10, 2019

Still failing. As long as ChronicleMap depends on Java 8 this cannot be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants