Skip to Content
0
Oct 22, 2021 at 03:25 PM

Cannot compile Crystal Classess ReportExportControl with Java EE 8

172 Views Last edit Oct 25, 2021 at 08:26 PM 2 rev

Hello,
The Crystal Report 2013 was used in our WEB applications with Java EE 6 technology.
Java web application is to run the Crystal Report file *.rpt.

Our Java web applications use the following java classes from SAP Crystal Report packages
import com.crystaldecisions.report.web.viewer.ReportExportControl;
import com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory;
import com.crystaldecisions.sdk.occa.report.data.Fields;
import com.crystaldecisions.sdk.occa.report.data.ParameterField;
import com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue;
import com.crystaldecisions.sdk.occa.report.data.Values;
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
with maven artfacts
<dependency>
<groupId>crystal</groupId>
<artifactId>webreporting</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>crystal</groupId>
<artifactId>jrcerom</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>crystal</groupId>
<artifactId>rascore</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>

The web applications were working fine with Java 7 with Crystal Report 2013 with above crystal java packages.

However, When our web applications are upgraded to JAVA EE 8, the above crystal report classes CANNOT be compiled any more.

My questions:
1. If the crystal report is upgraded to version of 2020, could you confirm the above crystal classes can be compiled or not?
2. Could you please provide some example java codes to generate crystal report in runtime with Java EE 8 and Crystal Report 2020.

Thanks,

Jim Zhang