Does JDK 8 support JasperReports 6?

I am trying to get my report to work for several days, but still no luck. I don’t know, something is wrong with the dependencies.

I asked this question earlier.

Anyway, I just want to know if anyone used JasperReports 6 with JDK 8? in the end I doubt that they are compatible.

+3
source share
2 answers

I just found out the problem after trying a few days. My report did not work due to an incompatibility issue. But since I did not use

JasperPrint jp = JasperFillManager.fillReport(jr, param, new JREmptyDataSource()); 

instead

 JasperPrint jp = JasperFillManager.fillReport(jr, param); 

Yes. JDK 8 is compatible with JasperReports 6.

JasperReports does not have enough community support, I had to figure it out myself. Anyway, I suggest significantly improving the JasperReports library.

+3
source

Update JDT

  <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>5.6.1</version> <exclusions> <exclusion> <groupId>eclipse</groupId> <artifactId>jdtcore</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.eclipse.jdt.core.compiler</groupId> <artifactId>ecj</artifactId> <version>4.4</version> </dependency> 

Source: How to run JasperReport with Java 8

+3
source

Source: https://habr.com/ru/post/1014025/


All Articles