Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT 4.2 classpath problem
BIRT 4.2 classpath problem [message #1038263] Wed, 10 April 2013 12:33 Go to next message
Maurizio Mauri is currently offline Maurizio Mauri
Messages: 2
Registered: April 2013
Junior Member
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 12:42 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1547
Registered: July 2009
Senior Member

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?


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Re: BIRT 4.2 classpath problem [message #1047042 is a reply to message #1041114] Mon, 22 April 2013 13:59 Go to previous messageGo to next message
Maurizio Mauri is currently offline Maurizio Mauri
Messages: 2
Registered: April 2013
Junior Member
I have tried your solution but i don't achieve my result.

Could you tell me the exact folder where i have to place my jars because i wasn't able also in this way.

Thanks a lot for your time
Re: BIRT 4.2 classpath problem [message #1048321 is a reply to message #1047042] Wed, 24 April 2013 06:04 Go to previous messageGo to next message
arron lee is currently offline arron lee
Messages: 2
Registered: April 2013
Junior Member
var reportBean = new com.mylib.birt.ResBean();
it doesn't work.

[Updated on: Mon, 30 June 2014 09:37] by Moderator

Report message to a moderator

Re: BIRT 4.2 classpath problem [message #1048487 is a reply to message #1048321] Wed, 24 April 2013 10:40 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1547
Registered: July 2009
Senior Member

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?

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Does BIRT 2.6.2 supports accessibility for data parameter type?
Next Topic:Xpath issue with xml datasource
Goto Forum:
  


Current Time: Thu Jul 31 01:24:00 EDT 2014

Powered by FUDForum. Page generated in 0.21292 seconds