Compatibility Mode Issues

1

Hi,

I am trying to get my JasperStudio To Compile Reports using JasperReports Libaries 4.0.2 and having nothing but issues, im sure its probably me doing something wrong but could someone please assist?

 

JR Console Log when setting compiler to 4.0.2

Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated
Compilation terminated
Compilation terminated
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated

 

Log When Trying To Compile

Start Compilation with command:
java -cp C:\jasperreports-4.0.2\*;C:\Users\shackletonk\JaspersoftWorkspace\MyReports\bin\;C:\Program Files\TIBCO\Jaspersoft Studio-6.6.0\configuration\org.eclipse.osgi\37\0\.cp\lib\js-extra-classes.jar com.jaspersoft.jasperreports.toolkit.JRCompiler C:\Users\shackletonk\JaspersoftWorkspace\MyReports\Premier Foods\tesco_pick_report.jrxml C:\Users\shackletonk\JaspersoftWorkspace\MyReports\Premier Foods\tesco_pick_report.jasper 
Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompiler
Compilation terminated

 

Many thanks in advance

 

Kind Regards

K Shackleton

kyleshackleton123's picture
Joined: Nov 1 2018 - 3:53am
Last seen: 3 years 2 months ago

Any answers on this?

 

I believe it is something i am doing wrong, as i am getting the same results on 2 other PCs i have tired.

 

Thanks

Kind Regards

kyleshackleton123 - 3 years 2 months ago

I'm facing an identical issue using JasperReports 3.6.0 (it's a legacy system I don't have much control over). Any traction on resolving this issue?

mitchell.probst - 2 years 9 months ago

1 Answer:

0

It is related to this issue, you do not have everything in your classpath that you actually need to compile the report. If you're following this guide be warned that it is NOT adding all of the items required.  It seems like this guide has been broken since at least Feb. 2017 (see the answer to this item).

What worked for me personally was to take all the jars listed in the first issue, and put them all together in a single directory, then finally configure the compiler to point to that directory.  I hope this helps!

mitchell.probst's picture
Joined: Apr 4 2019 - 2:52pm
Last seen: 2 years 9 months ago
Feedback
randomness