What version of JaspeReports has support for Java 8?
Asked Answered
M

3

9

I have been searching for quite some time to read an "official statement" on this matter, but found none. Therefore, could anyone please indicate a reference or point to some news on this? What version of JasperReports has support for Java 8, or at least is there partial support available? (or is it "trial and error"?)

Some posts on the Jasper community forum seem to indicate that iReport and JasperReports Server does not provide Java 8 support yet. On the other hand, I see some indications that it does, at least in part (http://community.jaspersoft.com/jasperreports-server/issues/3498). It is a bit confusing.

Montsaintmichel answered 26/4, 2014 at 19:28 Comment(0)
G
7

As far as i know, JasperReport does not support Java 8 yet, just like you said. In this post a member of JasperSoft staff clearly states that they will introduce it on later versions of their library, so i would trust him: JasperReport - Java 8 compatibility.

Grotto answered 27/4, 2014 at 14:19 Comment(1)
Yes, apparently no word on this even in the just released JasperReports 5.5.2. Seems we either wait or "trial and error" it.Montsaintmichel
M
6

We are not aware of any issue with running JasperReports Library on Java 8.

At some point we needed to upgrade the JDT compiler to support Java 8, but after doing so, there were no other issues we know about.

Mcglothlin answered 1/6, 2016 at 11:2 Comment(7)
Teodor, What is planning date of release with Java 8 support?Freak
Thank you for the answer, Teodor. I trust others will find this useful also.Montsaintmichel
Alex, JR Lib already works with Java 8. Have you tried it and it did not work?Mcglothlin
@TeodorDanciu At some point we needed to upgrade the JDT compiler to support Java 8, but after doing so, there were no other issues we know about. - What do you mean?Freak
What I meant is that the only Java 8 related problem that we know about was that the JDT compiler version 3.1.1 that we were using prior to JR 6.0.0 did not support Java 8. We use a Java compiler to produce bytecode out of the expressions inside JRXML templates. Starting with JR 6.0.0 we upgraded the JDT compiler to version 4.3.1 (now known as Eclipse Java Compiler) and there should be no issue running JR Lib on Java 8.Mcglothlin
JasperReports Server 6.0.1 on Java 8u102 start up error: .... Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/home/jasperreports/jasperserver-tomcat/webapps/jasperserver/WEB-INF/lib/saxonhe-9.2.1.5.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntaxHessian
@TeodorDanciu, I might have hit the same issue which you had. Have you seen any problem after upgrading the JDT version keeping the same version of JR?Acheron
B
0

Yes Java 8 support jasper report i am using jasperreport version 6.0.0 with java 8 and it is working as per expectation

Bourgeon answered 28/1, 2019 at 9:35 Comment(1)
From Review: Hi, this post does not seem to provide a quality answer to the question. Please either edit your answer and improve it, or just post it as a comment.Collator

© 2022 - 2024 — McMap. All rights reserved.