2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: ignacioal - ignacioal error using JasperReport with Sun Studio Crea 2006-06-08 18:28 Hi, I am a newbie using JasperReports v1.2.0 in a J2SE environment using Sun AS 8. The .jasper file is created correctly and my .jrxml file displays fine in iReport-1.2.0 I need to create reports in Studio creator the Sun. I tried many examples but I always end up with the same error msg and can't find a solution for it. This is the error message: net.sf.jasperreports.engine.JRException: Error loading expression class : testreport_1142608681187_139038 InputStream wfile = new FileInputStream(new File("c:/Program file/JasperSoft/iReport-1.2.2/reports/report.jrxml")); JasperDesign design = JRXmlLoader.load(wfile); JasperReport report = JasperCompileManager.compileReport(design); JasperPrint print = JasperFillManager.fillReport(report,param, conn); I have tried to change the java.policy of the JRE adding: permission java.lang.RuntimePermission "createClassLoader"; in this file: C:SunCreatorSunAppServer8domainscreatorconfigserver.policy (windows) I put it in between grant { }; but even this doesn't work. Has anyone had the same problem and maybe found a solution for it? I would be very thankful if someone could point me in the right direction. 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