BIRT 4.2 classpath problem [message #1038263] |
Wed, 10 April 2013 16:33  |
Eclipse User |
|
|
|
Hi,
I'm developing a report with birt 4.2 and I have problem with scriptlib in my development Eclipse.
To produce my scripted data source I need to use a class that comes form a jar.
importPackage(Packages.com.mylib.birt);
var reportBean = new ResBean();
var no_result_text = ResBean.EMPTYREPORT; //Read static variable
I have added a set of jars to the project classpath (jar, external jar, ...) but i always obtain this exception.
ReferenceError: "ResBean" is not defined. (/report/method[@name="beforeFactory"]#3)
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:249)
at org.eclipse.birt.report.engine.script.internal.ReportScriptExecutor.handleBeforeFactory(ReportScriptExecutor.java:122)
at org.eclipse.birt.report.engine.api.impl.EngineTask.startFactory(EngineTask.java:1996)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:101)
Sorry for this question.
Thanks regards
|
|
|
Re: BIRT 4.2 classpath problem [message #1041114 is a reply to message #1038263] |
Sun, 14 April 2013 16:42   |
Eclipse User |
|
|
|
If you do:
var reportBean = new com.mylib.birt.ResBean();
do you get the same error? Also, have you tried adding the jar as a resource in your resources section of the property editor for the report design?
|
|
|
|
|
Re: BIRT 4.2 classpath problem [message #1048487 is a reply to message #1048321] |
Wed, 24 April 2013 14:40  |
Eclipse User |
|
|
|
For getting it to work in the designer, did you try selecting a blank spot in the report so that the report is selected, go to the property editor's resource section, and add your jars to the jar resources?
|
|
|
Powered by
FUDForum. Page generated in 0.02689 seconds