farkincz Posted March 22, 2007 Share Posted March 22, 2007 Hello I have a simple application that should generate an Excel file from a simple iReport template, but at the first line I got this error: Exception in thread "main" java.lang.ExceptionInInitializerError at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.configureDigester(JRXmlDigesterFactory.java:169) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:950) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142) at iReport.main(iReport.java:17)Caused by: net.sf.jasperreports.engine.JRRuntimeException: Error loading the properties at net.sf.jasperreports.engine.util.JRProperties.initProperties(JRProperties.java:189) at net.sf.jasperreports.engine.util.JRProperties.<clinit>(JRProperties.java:156) ... 7 moreCaused by: net.sf.jasperreports.engine.JRException: Default properties file not found. at net.sf.jasperreports.engine.util.JRProperties.getDefaults(JRProperties.java:216) at net.sf.jasperreports.engine.util.JRProperties.initProperties(JRProperties.java:166) ... 8 more and the line 17 is (first line from the code): Code:JasperDesign jasperDesign = JRXmlLoader.load("report_1.jrxml"«») I have included in the project(I use Eclipse) these jars: commons-beanutils-1.7.jarcommons-collections-2.1.jarcommons-digester-1.7.jarcommons-logging-1.0.2.jarcommons-logging-api-1.0.2.jariReport.jarjasperreports-1.3.1.jarpoi-2.0-final-20040126.jar Any help is appreciated. Thanks. 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