ConcourseSuite Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Reports and Report Writing

iReport installation questions.

You need to be logged in to post messages

iReport installation questions.

6/2/2005 3:18 PM EDT (edited)

Hi everybody, I just trying to install and run iReport in a windows xp machine, I did the following steps:
1) Install JDK
2) download and unzip iReport-x.x.x.zip
3) copy tools.jar to iReport/lib directory
4) start iReport

When I trying to start iReport.bat is not working, I realized that when this .bat execute the starup.bat file this one is trying to execute a java program called MainFrame in the directory "it.businesslogic.ireport.gui", this directory contain just java source files but no classes.
So the questions are:

1) Do I have to compile all the sources in this directory?
2) Do I missing something during the installation that is causing this?
3) What other things do I have to do in order to install and run iReport properly for windows xp?

Sorry if these questions are so easy, but I'm new working with this kind of tools, and I apreciate if somebody can help me with some advice.

Thanks in advance.

Ricardo Perez

1. 6/2/2005 3:39 PM EDT

You should be able to download the binary version and then try running the start up script. This should get you started.

Look for iReport-0.5.0.zip which containts the binary version and you would not have to compile any source files.

Hope this helps!
-Ananth

2. 6/3/2005 9:07 AM EDT (edited) by Moderator

Thanks to Ananth and the community. I did in that way and it works, now I trying to compile and existing report and show me compilation errors like this below:

If somebody can help, I will appreciate it.

Compiling to file... .\quote.jasper -> .\quote.java Errors compiling .\quote.jasper! it.businesslogic.ireport.ReportClassLoader@284112 net.sf.jasperreports.engine.JRException: Errors were encountered when compiling 
report expressions class file: 1. org.aspcfs.utils.JasperScriptletUtils cannot be resolved or is not a type                 value = (java.lang.String)(((org.aspcfs.utils.JasperScriptletUtils) (
(net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).getLabel((
(java.util.Map)parameter_CENTRIC_DICTIONARY.getValue()), "reports.quotes.quote.quotation", "QUOTATION"));                                              
<-----------------------------------> 2. org.aspcfs.modules.contacts.base.Contact cannot be resolved or is not a type
               value = (java.lang.String)(org.aspcfs.modules.contacts.base.Contact.getNameLastFirst((
(java.lang.String)field_enteredbyl
astname.getValue()), 
((java.lang.String)field_enteredbyfirstname.getValue())));                                            
<--------------------------------------> 3. org.aspcfs.utils.JasperScriptletUtils cannot be resolved or is not a type                 value = (java.lang.String)(((org.aspcfs.utils.JasperScriptletUtils) (
(net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).getLabel((
(java.util.Map)parameter_CENTRIC_DICTIONARY.getValue()), "reports.quotes.quote.date", "DATE"));                                              
<----------------------------------->

etc.........
.............

78 errors     at net.sf.jasperreports.engine.design.JRJdtCompiler.compileReport(JRJdtCompiler.java:122)     at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105)     at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)     at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109)     at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:420)     at java.lang.Thread.run(Thread.java:595)

3. 6/3/2005 9:33 AM EDT

Look for aspcfs.jar and darkhorseventures.jar in centric's lib folder and copy them to your ireport's lib folder and restart iReport. These jars are required since the centric's reports make calls to methods avaiable in these libraries.

4. 6/3/2005 11:15 AM EDT (edited)

Thanks Ananth, it is working now. another question I'm try to create a sample report with static data, just to see how iReport work, but I can't typing letters to create titles on the documents. Do I have to do something else to activate the keyboard when creating static data?

Once again thanks a lot!!

5. 6/3/2005 12:34 PM EDT

William,

You cannot type text directly on the report template. There are static text elements and Field elements that you will have to place on the report. You will then be able to enter text that will be displayed on the report.

Data to be displayed on the report can come from various sources. It could be static text or dynamic text (..usually the database).

IReport is a graphical tool which lets you build Jasper Reports. You might want to look at the Jasper Reports website which describes what jasper reports are and how to build them.

http://jasperreports.sourceforge.net/

-Ananth

6. 6/3/2005 1:42 PM EDT

Hi Ananth thanks for your support. I have another questions:

- How the CLASSPATH would look like in order to setup the postgresql driver org.postgresql.Driver?

- What .jar file contains this driver?

Thanks a lot,

Ricardo
P.D. my name is Ricardo I just using Wil's account.

7. 6/3/2005 2:01 PM EDT

you will have a jdbc driver, postgresql-XXX.jar in your centric's lib folder. Copy this into iReport's lib folder and restart iReport. Now you should be able to see postgres option in the database connection wizard within iReport.

8. 6/3/2005 3:11 PM EDT (edited) by Moderator

Thanks Ananth, now the connection is fine, but I got another problem when I try to run a report show me the message below:

Do you have any idea what is going on?

running time : 563 Filling report... Error filling print... net.sf.jasperreports.engine.JRException: Could not load object from location :
 /Users/Ananth/source/crm3/src/jasper_reports/quote_items_subreport1.jasper     at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:262)     at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:294)     at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:497)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:435)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:208)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:118)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)     at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:116)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:428)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:344)     at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:529)     at java.lang.Thread.run(Thread.java:595) Print not filled. Try to use an EmptyDataSource...!

9. 6/3/2005 3:34 PM EDT

A report can have subreports. The report that you are trying to run has subreports. So you will have to open each subreport that the report requires and compile them seperately. Make sure the path where the subreports have been compiled are available.

The report will have a path parameter. You will have to provide the correct path and the main report should then successfully run.

10. 6/6/2005 10:03 AM EDT

Hi Ananth, I fixed the path in all subreports, so they are working fine.
Now the problem is that I'm trying to make some visual changes to the report for a better presentation but the report is not taking the changes I made.
How can I modify the design of a report already made?

Thanks for your support!!

Regards,

Ricardo

28 results found