Jump to content
JasperReports Library 7.0 is now available ×

Error loading the properties


farkincz

Recommended Posts

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 more
Caused 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.jar

commons-collections-2.1.jar

commons-digester-1.7.jar

commons-logging-1.0.2.jar

commons-logging-api-1.0.2.jar

iReport.jar

jasperreports-1.3.1.jar

poi-2.0-final-20040126.jar

 

Any help is appreciated.

 

Thanks.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...