0

我正在使用Jaspersoft Studio6.6 并尝试将自己添加functionsExpression Editor.

因此,我遵循教程Jaspersoft Studio 表达式编辑器:如何扩展它并贡献您自己的功能(第 2 部分) - 更新为 5.5 版(我无法找到更新的版本,所以我想这个应该仍然是正确的)

一切正常,但我不得不将生成的报告(SampleFunctionsReport.jrxml)的语言从groovyto替换为java摆脱class not found exceptions

最后剩下以下错误:

Description    Resource    Path    Location    Type
The method HELLO_WORLD_MSG() is undefined for the type SampleFunctions_1541665022158_603382    SampleFunctionsReport.jrxml    /MyFunctions    line 37    JRXML Problem
The method HELLO_WORLD_MSG() is undefined for the type SampleFunctions_1541665022158_603382 value = HELLO_WORLD_MSG( );     SampleFunctionsReport.jrxml    /MyFunctions    line 0    JRXML Problem
The method REPEAT_MSG(String, int, boolean) is undefined for the type SampleFunctions_1541665022158_603382    SampleFunctionsReport.jrxml    /MyFunctions    line 52    JRXML Problem
The method REPEAT_MSG(String, int, boolean) is undefined for the type SampleFunctions_1541665022158_603382 value = REPEAT_MSG("A message that will be probably repeated",5,true);     SampleFunctionsReport.jrxml    /MyFunctions    line 0    JRXML Problem

我检查了教程的要点几次......有人可以重现我的问题吗?我错过了什么?

4

1 回答 1

0
<import value="test.customfunctions.*"/>

这是我的代码jrxml,很好。当我尝试输入全class名时 - 出现错误,package无法添加。

今天我再次尝试了同样的方法——它的工作原理。即使结果XML相同的!

于 2018-11-09T10:06:21.837 回答