Getting Error Unable to create symbol table for file : java.lang.IllegalArgumentException: Unsupported class file major version 59

SonarQube Version - 7.9.3
Java Version - 12

I am not able to calculate code coverage of integration tests stored in jacoco.exec file remotely using jacocoagent.jar

The version is giving me warning - target/jacoco.xml


Welcome to the community!

What have you tried?


I was using 7.9.5 LTS. Used a Maven project with java 12. Post 7.9.5 sonar.jacoco.reportPaths is deprecated which I was using earlier for jacoco.exec generated via jacacoagent.jar.

Not sure how can I measure remote code coverage with Sonar now?

I tried moving to 7.8 but I am getting the error “java.lang.IllegalArgumentException: Unsupported class file major version 59” on that.

So I am stuck and not able to fetch code coverage for integration tests.


If what you had was working with the .exec report format, it sounds like you just need to tweak your job to output the JaCoCo XML report format. That should work.