Project Home

Tracker

Documents

Tasks

Source Code

Discussions

Reports

File Releases

Wiki

Project Admin
Search Wiki Pages Project: iReport     Wiki > FAQ > View Wiki Page
wiki1127: FAQ

iReport Documentation


iReport FAQ

1. How to fill a subreport using only static text fields.
2. lauching iReport.bat : Exception in thread "main" java.lang.NoSuchMethodError

1. How to fill a subreport using only static text fields.

Solution 1:

  • Edit your subreport and put all your elements in the title section (title band);
  • Open the report properties window (view->Report properties), click on the tab more... and set "When no data" to AllSectionsNoDetail;
  • Edit your master report, select your subreport element, double click to open the element properties dialog, click on the tab Subreport and select Don't use connection or datasource.

Solution 2:

  • Edit your subreport placing your elements where you prefer;
  • Edit your master report, select your subreport element, double click to open the element properties dialog, click on the tab Subreport and choose "Datasource expression" in the combo box;
  • Set the Datasource expression as follow: new JREmptyDataSource(1)
  • Download the sample: faq1.zip

2. Lauching iReport.bat : Exception in thread "main" java.lang.NoSuchMethodError

Usually the full exception is:

Exception in thread "main" java.lang.NoSuchMethodError

at it.businesslogic.ireport.gui.SplashDialog.initComponents(SplashDialog.java:44)

at it.businesslogic.ireport.gui.SplashDialog.(SplashDialog.java:18)

at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:6691)

Be sure you are using JDK 1.4.2 or later. You can test the used JVM with the command:

java -version

The problem can happen with Oracle client installed: it adds jdk1.3 at the beginning of the PATH.