rikiti Posted February 14, 2018 Share Posted February 14, 2018 HelloI can not use scriptlets in jasper studio. I have an error that I do not understand. I'm trying to follow this tutorial: here is the error below and I have the impression that the jasper report does not recognize the java class.https://www.developpez.net/forums/attachments/p351128d1518609359/logiciels/solutions-d-entreprise/business-intelligence/jasper/scriptlet-rapport-jasper-ne-reconnait-class-java/titre.png/When I add the TestScriptlet java class, it is not detected here:https://www.developpez.net/forums/attachments/p351132d1518609649/logiciels/solutions-d-entreprise/business-intelligence/jasper/scriptlet-rapport-jasper-ne-reconnait-class-java/titre.png/net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:1. TestScriptlet cannot be resolved to a typevalue = "Fahrenheit" + ((TestScriptlet)parameter_Scriptlet_1_SCRIPTLET.getValue()).CelsiusToFahrenheit(); //$JR_EXPR_ID=10$<----------->2. TestScriptlet cannot be resolved to a typevalue = "Fahrenheit" + ((TestScriptlet)parameter_Scriptlet_1_SCRIPTLET.getValue()).CelsiusToFahrenheit(); //$JR_EXPR_ID=10$<----------->3. TestScriptlet cannot be resolved to a typevalue = "Fahrenheit" + ((TestScriptlet)parameter_Scriptlet_1_SCRIPTLET.getValue()).CelsiusToFahrenheit(); //$JR_EXPR_ID=10$<----------->3 errors.at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:206)at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:286)at com.jaspersoft.studio.editor.preview.view.control.ReportControler.compileJasperDesign(ReportControler.java:476)at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$15(ReportControler.java:453)at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:366)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Link to comment Share on other sites More sharing options...
sergey.vishnevetskiy Posted February 14, 2018 Share Posted February 14, 2018 Put your .jar file into tomcat/webapps/jasperserver/lib (or similar). Then restart tomcat and try using your report. Link to comment Share on other sites More sharing options...
rikiti Posted February 15, 2018 Author Share Posted February 15, 2018 I would like create scriptlet without jasper server ! Is it possible ? 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