在jaspersoft studio中使用外部JAR文件 [英] use external JAR file in jaspersoft studio

查看:501
本文介绍了在jaspersoft studio中使用外部JAR文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iReport中有项目,我想在jasper工作室中构建它,因为我使用一些外部jar文件来转换日期,但是在jasper工作室我无法使用它们,我在右键单击项目文件夹>属性> java build path>库>添加外部JAR .. ,当我想查看报告预览时出现错误:

I have project in iReport,I want to build this in jasper studio,in that I use some external jar file to convert date,but in jasper studio I cant use them,I add those jar file in right click on project folder > properties > java build path > libraries > add External JARs..,iI get error when i want to see report preview :

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. com.ghasemkiani.util.icu.PersianDateFormat cannot be resolved to a type
                value = new com.ghasemkiani.util.icu.PersianDateFormat("yyyy/MM/dd").format(((java.sql.Timestamp)field_ORDERDATE.getValue())); //$JR_EXPR_ID=9$
                            <---------------------------------------->
2. com.ghasemkiani.util.icu.PersianDateFormat cannot be resolved to a type
                value = new com.ghasemkiani.util.icu.PersianDateFormat("yyyy/MM/dd").format(((java.sql.Timestamp)field_ORDERDATE.getOldValue())); //$JR_EXPR_ID=9$
                            <----------------------------------------> 

所以,我的问题是:如何添加外部jar文件并使用它?

so,my question is : how can I add external jar file and use it?

推荐答案

将jar文件添加到构建路径后,必须重新启动Jasper Studio。

After you have added jar file to build path you have to restart your Jasper Studio.

这篇关于在jaspersoft studio中使用外部JAR文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆