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

Cobertura fails to build with Java9 #271

Open
hansjoachim opened this Issue Oct 4, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@hansjoachim

hansjoachim commented Oct 4, 2015

When attempting to build current master (642a46e) with OpenJDK9 9~b80-2, it fails in Cobertura code coverage module with the following error message:

[ERROR] Failed to execute goal on project cobertura: Could not resolve dependencies for project net.sourceforge.cobertura:cobertura:jar:2.1.2-SNAPSHOT: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/java-9-openjdk-amd64/../lib/tools.jar -> [Help 1]

Since JDK9 will no longer include tools.jar, this should probably be looked into.

This was previously mentioned in #121 (by @mshuler and me), but I didn't see any replies so I've filed a separate issue now.

@alphafoobar

This comment has been minimized.

Show comment
Hide comment
@alphafoobar

alphafoobar Sep 26, 2017

I'm seeing a similar error using cobertura as a maven plugin with JDK-9.

[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project spotbugs-maven-plugin: Execution default of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/../lib/tools.jar

alphafoobar commented Sep 26, 2017

I'm seeing a similar error using cobertura as a maven plugin with JDK-9.

[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project spotbugs-maven-plugin: Execution default of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/../lib/tools.jar
@AlanBateman

This comment has been minimized.

Show comment
Hide comment
@AlanBateman

AlanBateman Oct 16, 2017

tools.jar was indeed removed in JDK 9. All the details are in JEP 220. JDK 9 Early Access builds were available since late 2014 with this change (to give tools that depend on it as much time as possible to digest the change).

AlanBateman commented Oct 16, 2017

tools.jar was indeed removed in JDK 9. All the details are in JEP 220. JDK 9 Early Access builds were available since late 2014 with this change (to give tools that depend on it as much time as possible to digest the change).

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