Home
Analytics
How to add my java libraries to viewer in eclipse?
dzish
Hi,
I would like to solve an issue. I have external libraries (authorization), which report calls from event handler. It works on server but not in preview/birt viewer from eclipse.
I had to comment lines with calling these external classes to look at designer.
At first I expected there is any classpath properties for report project, it isn't.
Then I tried to put my jar into directory "pluginsorg.eclipse.birt.report.viewer_2.5.1.v20090821birtWEB-INFlib" it doesn't work, then I added this jar path to MANIFEST.MF
"Bundle-ClassPath: ., viewer.jar,birt/WEB-INF/classes,birt/WEB-INF/lib/
viewservlets.jar,birt/WEB-INF/lib/SecurityAccessFilter-1.2.1.jar"
and no success.
Is there a way how to add my custom java library? It's not vital problem but it would be nice to get started viewer in eclipse.
thanks
Find more posts tagged with
Comments
CBR
Which version of BIRT you are using?
the simplest way that should work for all BIRt versions is to create a Eclipse project in which you put your jar file and your report. The viewer automatically adds all java sources to its classpath that are in the same eclipse project when running the preview inside of designer.
CBR
In addition you should read this blog post: <a class='bbc_url' href='
http://birtworld.blogspot.com/2010/03/birt-252-enhancements.html'>BIRT
World: BIRT 2.5.2 Enhancements</a><br />
chapter Designer classpath configuration
dzish
Hi,
thank you for help. I use org.eclipse.birt.report.viewer_2.5.1.v20090821. I had BIRT 2.5.2 and it didn't work with something correctly so I downgraded.
I'll wait for newer version and I will use it.
Now I think it's possible to use "scriptlib" directory for my jars.