0

I am trying to generate a report with JasperReports and Spring Boot that contains a chart.

The dependencies I use are:

<dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports</artifactId>
        <version>6.5.0</version>
</dependency>

<dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports-fonts</artifactId>
        <version>6.0.0</version>
</dependency>


<dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports-chart-themes</artifactId>
        <version>6.8.0</version>
</dependency>

My project is Java 7.

When compiling the report I am getting this error:

Caused by: java.lang.UnsupportedClassVersionError: net / sf / jasperreports / chartthemes / ChartThemeMapBundle: Unsupported major.minor version 52.0

I understand that it is because the dependency jasperreports-chart-themes that I use is not compatible with Java 7, but I cannot find a compatible version in the maven repository.

Does anyone know how I can solve this problem?

Thank you.

Alex K
  • 21,796
  • 18
  • 106
  • 231
xectpp
  • 121
  • 1
  • 1
  • 4
  • You can scour the Jasper Reports sourceforge site and look through their downloads to see if you can find something. I've found that `6.5.1` is the last version to compile with Java 7. You may need to download it directly from there an install it locally as part of your `README.md` instructions. – kendavidson Sep 20 '21 at 12:25

0 Answers0