cnjun Posted August 19, 2006 Share Posted August 19, 2006 I can't build the .jasper file,who can tell me the reason. E:\jasperreports\demo\samples\alterdesign>ant compileBuildfile: build.xmlcompile:BUILD FAILEDE:\jasperreports\demo\samples\alterdesign\build.xml:27: taskdef A class needed by class net.sf.jasperreports.ant.JRAntCompileTask cannot be found: org/apache/tools/ant/taskdefs/MatchingTaskTotal time: 1 secondPost edited by: cnjun, at: 2006/08/19 06:37 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted August 21, 2006 Share Posted August 21, 2006 where do you get this error?It looks like some jars are not in your classpath. Giulio Link to comment Share on other sites More sharing options...
GalinaM Posted May 11, 2007 Share Posted May 11, 2007 I get the same error when running any ant compile task that are distributed with jasperreports-1.3.3/demo/samples:S Link to comment Share on other sites More sharing options...
Case1182 Posted May 11, 2007 Share Posted May 11, 2007 u are missing a necessary .jar file that this class net.sf.jasperreports.ant.JRAntCompileTask is trying to pull, get a list of setup .jars for ant and make sure they are all in ur class path. Link to comment Share on other sites More sharing options...
GalinaM Posted May 11, 2007 Share Posted May 11, 2007 They are all there, I double- and triple-checked. This is the out-of-the-box jasperreports distribution package. Only the report compile tasks fail, the ones that invoke the jrc taskdef. Is there a way to run them on a command-line without ANT? Thank you for your reply! Link to comment Share on other sites More sharing options...
Case1182 Posted May 11, 2007 Share Posted May 11, 2007 yeah u can if u are just looking to compile it once and not on the fly, download a program called iReports its free and compile it in there, if u already have it u do not need any ant lines to compile it, ant is more for compiling it over again when the user accesses it and gives parameters and u need to recompile, but there is very little situations where u would need to recompile on every report. 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