daniele Posted January 15, 2007 Share Posted January 15, 2007 Hi,I made a template with a report but when I compile it under Tomcat I found the following error. org.apache.jasper.JasperException: java.lang.RuntimeException: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:C:WINDOWSsystem32prova_1168868704541_322002.java:4: package net.sf.jasperreports.engine does not exist what am i doing wrong? thanks in advance Link to comment Share on other sites More sharing options...
anandharaj Posted January 16, 2007 Share Posted January 16, 2007 Please try put the JasperReport .jar file in Tomcat's lib folder. OR Set CLASSPATH point to JR .jar file Link to comment Share on other sites More sharing options...
daniele Posted January 16, 2007 Author Share Posted January 16, 2007 Hi, I did but it doesn't work yet!! Link to comment Share on other sites More sharing options...
manz_jasper Posted January 16, 2007 Share Posted January 16, 2007 Try to put jasperreport-xxx.jar to tomcat/lib. If it doesn't work, put jasperreports-xxx.jar into your webapp/lib. Don't forget to restart the tomcat. Hope this help.:) Link to comment Share on other sites More sharing options...
daniele Posted January 16, 2007 Author Share Posted January 16, 2007 I did, but it doesn't work! It's very strange!!:( Link to comment Share on other sites More sharing options...
anandharaj Posted January 16, 2007 Share Posted January 16, 2007 If possible, can you post the code that you trying to compile it. Link to comment Share on other sites More sharing options...
lucianc Posted January 16, 2007 Share Posted January 16, 2007 Also include the jdt-compiler jar distributed with JasperReports in your web application so that the JDT report compiler is used. HTH,Lucian Link to comment Share on other sites More sharing options...
nagendra7980 Posted January 17, 2007 Share Posted January 17, 2007 Hi It need some more jars like jdtcompiler etc. Please all jars ion jasper folder & try RegardsNagendra M Link to comment Share on other sites More sharing options...
manz_jasper Posted January 18, 2007 Share Posted January 18, 2007 Did you include the other jars like : commons-beanutils-x.x.jarcommons-collections-x.x.jarcommons-digester-x.x.jarcommons-logging-x.x.x.jarcommons-logging-api-x.x.x.jaritext-x.x.x.jarjdt-compiler-x.x.x.jarjxl-x.x.jarpng-encoder-x.x.jarpoi-x.x.x-x.jar<jdbc-driver>.jar itext-x.x.x.jar needs for export to pdfjxl-x.x.jar needs for export to excel all files need to be placed in your<webapps>WEB-INFlib folder May you try this ??? Because, if you only jasperreports-x.x.x.jar included and recompile your .jrxml you will be get that error messages, same with my problem.After include all files listed in above, compiling the .jrxml is no problem... May this can help you.;)Post edited by: manz_jasper, at: 2007/01/18 00:45 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