Jump to content
We've recently updated our Privacy Statement, available here ×

o_watkins

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by o_watkins

  1.  Hi I have a task def defined in ANT.

        <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask">
          <classpath>
            <fileset dir="lib/rt">
              <include name="**/*.jar"/>
            </fileset>
          </classpath>
        </taskdef>

    When I run the jrc task in an ANT target I get this error :

    BUILD FAILED
    C:\dev\workspace\skm-reporting\build\build.xml:50: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [net.sf.jasperreports.engine.fonts.SimpleFontFamily] for bean with name 'dejaVuSansFamily' defined in URL [jar:file:/C:/dev/workspace/skm-reporting/lib/rt/jasperreports-fonts-3.7.1.jar!/net/sf/jasperreports/fonts/fonts.xml]; nested exception is java.lang.ClassNotFoundException: net.sf.jasperreports.engine.fonts.SimpleFontFamily
     

    When I look into fonts.xml (a spring bean), I can see the SimpleFontFamily class defined.

        <bean id="dejaVuSansFamily" class="net.sf.jasperreports.engine.fonts.SimpleFontFamily">

    ..but this is in jasperreports-fonts-3.7.1.jar and the class SimpleFontFamily is in jasperreports-3.7.1.jar. I don't know if this is right. My experience in Spring is pretty limited.

    So any ideas? All my LIBS are in my lib/rt folder. Think I am missing a jar somewhere.

    cheers,

    Oliver Watkins

     

     

     

     

    Code:
        <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask">      <classpath>        <fileset dir="lib/rt">          <include name="**/*.jar"/>        </fileset>      </classpath>    </taskdef>
×
×
  • Create New...