o_watkins Posted March 11, 2010 Share Posted March 11, 2010 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 FAILEDC:\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> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now