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.

Zoe
  • 27,060
  • 21
  • 118
  • 148
acostache
  • 2,177
  • 7
  • 23
  • 48

3 Answers3

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.

Endrik
  • 2,238
  • 3
  • 19
  • 33
  • Yes, apparently no word on this even in the just released JasperReports 5.5.2. Seems we either wait or "trial and error" it. – acostache May 01 '14 at 17:49
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.

Petter Friberg
  • 21,252
  • 9
  • 60
  • 109
Teodor Danciu
  • 221
  • 2
  • 4
  • Teodor, What is planning date of release with *Java 8* support? – Alex K Jun 01 '16 at 15:07
  • Thank you for the answer, Teodor. I trust others will find this useful also. – acostache Jun 03 '16 at 01:33
  • Alex, JR Lib already works with Java 8. Have you tried it and it did not work? – Teodor Danciu Jun 04 '16 at 07:17
  • @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? – Alex K Jun 06 '16 at 21:14
  • 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. – Teodor Danciu Jun 17 '16 at 10:47
  • 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 syntax` – Christopher Schultz Sep 29 '16 at 16:23
  • @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? – Pranav Kevadiya Mar 28 '19 at 11:41
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

  • 1
    From Review: Hi, this post does not seem to provide a [quality answer](https://stackoverflow.com/help/how-to-answer) to the question. Please either edit your answer and improve it, or just post it as a comment. – sɐunıɔןɐqɐp Jan 28 '19 at 09:42