Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT 4.2 classpath problem
BIRT 4.2 classpath problem [message #1038263] Wed, 10 April 2013 16:33 Go to next message
Maurizio Mauri is currently offline Maurizio MauriFriend
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 16:42 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
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

Developer Evangelist, Silanis
Re: BIRT 4.2 classpath problem [message #1047042 is a reply to message #1041114] Mon, 22 April 2013 17:59 Go to previous messageGo to next message
Maurizio Mauri is currently offline Maurizio MauriFriend
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 10:04 Go to previous messageGo to next message
arron lee is currently offline arron leeFriend
Messages: 2
Registered: April 2013
Junior Member
var reportBean = new com.mylib.birt.ResBean();
it doesn't work.

[Updated on: Mon, 30 June 2014 13: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 14:40 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
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

Developer Evangelist, Silanis
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 Mar 28 08:46:45 GMT 2024

Powered by FUDForum. Page generated in 0.02383 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top