mi12 Posted November 29, 2007 Share Posted November 29, 2007 Hi, I am using JasperReport API, when I am calling the JasperCompileManager.compileReportToFile(srcFile, destFile) with in the plugin, it showing one error, package net.sf.jasperreports.engine does not exist import net.sf.jasperreports.engine.*; The error occurs at :-at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) But the the JasperReport library in the classpath, still it is showing the error. Here, I am also attaching the complete log in a file "Error-d191c384c2eaf4afef3263a23d60bed6.txt". [file name=Error-d191c384c2eaf4afef3263a23d60bed6.txt size=23689]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Error-d191c384c2eaf4afef3263a23d60bed6.txt[/file] Post edited by: arupranjans, at: 2007/11/29 11:18 Post edited by: arupranjans, at: 2007/11/30 08:30Post edited by: arupranjans, at: 2007/11/30 08:31 Link to comment Share on other sites More sharing options...
Solution lucianc Posted November 29, 2007 Solution Share Posted November 29, 2007 See this FAQ. HTH,Lucian Link to comment Share on other sites More sharing options...
mi12 Posted November 29, 2007 Author Share Posted November 29, 2007 Hi Lucian, Thanks for a quick reply, I have included the "jdt-compiler-3.1.1.jar", found in the lib directory of the Jasper Report Project. But, still it is showing the same error."Package doesn't exist". "jdt-compiler-3.1.1.jar" is used to compile the Report Design templet(.jrxml file) without creating any temporary file. Currently, I am using the below code to compile the Report Design Templet to generate the compile report(.jasper file) Code:JasperCompileManager.compileReportToFile(srcFile, destFile); After including the "jdt-compiler-3.1.1.jar", will it requires any changes to compile the Report Design or the above code is correct? Because it is still showing the same ERROR. Thanks for your help.Post edited by: arupranjans, at: 2007/11/30 08:33 Link to comment Share on other sites More sharing options...
lucianc Posted November 29, 2007 Share Posted November 29, 2007 arupranjans wrote:After including the "jdt-compiler-3.1.1.jar", will it requires any changes to compile the Report Design or the above code is correct? The code does not need to be changed, the JDT compiler will be automatically used to compile the report. If the JDT compiler does not work, I'm afraid I don't have any other clues on what's wrong. Regards,Lucian PS: You keep mentioning a "plugin", but there's no reference to what exactly the "plugin" is. Link to comment Share on other sites More sharing options...
mi12 Posted November 30, 2007 Author Share Posted November 30, 2007 Thanks a lot Lucian, Now, it is working. There was some problem in setting the classpath, therfore it wasn't finding the JDT Compiler. Now it is solved. Thanks a lot again...You guys are really Great. :) :) Link to comment Share on other sites More sharing options...
mouna Posted May 15, 2008 Share Posted May 15, 2008 Hello,I am no working with jasperreports ans i have this error package net.sf.jasperreports.engine does not exist.I want to khnow what yu did to make it xrk with yu.Thank yu. 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