suhaza_86 Posted July 14, 2017 Share Posted July 14, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now