Jump to content
Changes to the Jaspersoft community edition download ×

Parsing error


Recommended Posts


currently I try to get started with Jasper Reports with a simple "Hallo World" report from this page:



The XML file looks as follows:


 <?xml version="1.0"?>
<!DOCTYPE jasperReport
PUBLIC "-//JasperReports//DTD Report Design//EN"

<jasperReport name="Simple_Report">
<band height="20">
<reportElement x="180" y="0" width="200" height="20"/>
<text><![CDATA[Hello World!]]></text>


And the test program:


[code]package halloworld;

import net.sf.jasperreports.engine.*;
import java.util.*;

* @author bw1banu0
public class Main
public static void main(String[] args)
JasperReport jasperReport;
JasperPrint jasperPrint;
jasperReport = JasperCompileManager.compileReport(
jasperPrint = JasperFillManager.fillReport(
jasperReport, new HashMap(), new JREmptyDataSource());
jasperPrint, "reports/simple_report.pdf"«»);
catch (JRException e)


When I run this program I get error messages according attachment.


Can anybody help me to fix this?


Kind regards - Ulrich [file name=error.txt size=9743]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/error.txt[/file]

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hallo Lucian,

found the compiler and the compilation seems to work now. However I get an error when creating a PDF file. Thank you so far for your help!

Kind regards - Ulrich


Post edited by: UlrichB, at: 2006/10/24 10:19

Post edited by: UlrichB, at: 2006/10/24 10:21

Link to comment
Share on other sites

Hallo Lucian,

I've already fixed this error, the package for PDF handling was not yet included. Now I have a problem with iReport - see here:


Unfortunately I got no reply to this posting. Is the mailing list a better place to get support?

Kind regards - Ulrich

Link to comment
Share on other sites

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...