我正在使用Jaspersoft Studio6.6 并尝试将自己添加functions到Expression 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
我检查了教程的要点几次......有人可以重现我的问题吗?我错过了什么?