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

o_watkins

Members
  • Posts

    2
  • Joined

  • Last visited

o_watkins's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  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>
  2. looks good. But the root directory is my Document and Settings user folder. I need to access everything under C:\ where all my projects are. Can't seem to figure out how to change it
×
×
  • Create New...