Jump to content
Changes to the Jaspersoft community edition download ×

Help ! NoClassDefFoundError at loadXmlDesign


2005 IR Help

Recommended Posts

By: gordon cole - gordon_cole

Help ! NoClassDefFoundError at loadXmlDesign

2004-03-10 06:38

I use jasper 0.5.2 and Eclipse 2.1.2 for few days.

And I get NoClassDefFoundError: dori/jasper/engine/JasperManager at loadXmlDesign function. What is wrong ?

 

 

Thank you for help...

 

 

 

My Java file

-------------------------------------------

import dori.jasper.engine.*;

import dori.jasper.engine.design.*;

import java.io.*;

 

public class Japrint {

 

public static void main(String[] args) throws Exception {

boolean _is;

 

File fl = new File("BasicReport.xml");

_is = fl.exists();

// variable "_is" is always true, and I think that file "BasicReport.xml" is accesible for program

JasperDesign jasperDesign = JasperManager.loadXmlDesign("BasicReport.xml");

// and here I get Exception: "java.lang.NoClassDefFoundError: dori/jasper/engine/JasperManager"

// What the hell is going on ?

 

}

}

 

 

And my XML File

-------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="BasicReport" >

<parameter name="Title" class="java.lang.String"/>

<title>

<band height="50">

</band>

</title>

<pageHeader>

<band>

</band>

</pageHeader>

<detail>

<band height="20">

</band>

</detail>

<columnFooter>

<band>

</band>

</columnFooter>

<summary>

<band>

</band>

</summary>

</jasperReport>

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