How to Fix Error compiling the iReport 3.7.3 java source

0
import net.sf.jasperreports.engine.JRDefaultScriptlet;import net.sf.jasperreports.engine.JRScriptletException; public class MyScriptlet extends JRDefaultScriptlet
Here are the errors I found in iReport console:
Error compiling the report java source! java.lang.UnsupportedClassVersionError: Bad version number in .class file
 
Below are some steps that I after searching the fix on the internet.
 
 1. Ensure JDK Compliance in Eclipse Luna is set to 1.6
 2. Add below jar in the java project:
commons-beanutils-1.8.2.jar     
commons-collections-3.2.1.jar    
commons-digester-1.7.jar     
commons-logging-1.1.jar    
jasperreports-3.7.3.jar     
jfreechart-1.0.12.jar    
jcommon-1.0.15.jar     
commons-javaflow-20060411.jar
 
I also tried to test adding a scriptlet using CustomBarcode Jar from the internet, and my iReport does not throws any errors.
 
Please help me fix this issue.
suhaza_86's picture
Joined: Jun 28 2017 - 8:26pm
Last seen: 3 years 7 months ago

0 Answers:

No answers yet
Feedback
randomness