Home DevShare Deploying BIRT Reports

EclipseCon 2011 API Examples

Share

by JasonW

DevShare - 100 postsForum - 2,000 postsCommunity Advisor
Posted 22 Mar 2011 - 07:58 AM

(0)  (0)   (11819 views)

By downloading this item, you are agreeing to the Terms of Use for the site.

PPT and examples from EclipseCon 2011 API class

Birt Version:-2.5

Examples include several projects that can be imported into your workspace.  Make sure to update your build path with the location of your BIRT engine libs.

Download (2.05 MB)

By downloading this item, you are agreeing to the Terms of Use for the site.



tongcd2000

Posted: 11 May 2012 - 09:18 AM

not work in birt 3.7.1

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 11 May 2012 - 02:01 PM

What error are you getting?

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 01:54 PM

Hi, I am trying to put the API/APIs/src/REAPI/RunAndRender into a servlet. I am using birt-runtime-osgi-3_7_2 because birt-runtime-4_2_0 does not have plugins and configuration folder. I also change the structure to that of WebReport. But I got problems

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 01:55 PM

The problem is org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:UsersChangyuuser" "read")

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 01:57 PM

I don't know why it is trying to read C:UsersChangyuuser, actually there is no such folder. Could you give me some suggestions? Thank you

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 18 Jul 2012 - 03:19 PM

Have you seen this link: http://wiki.eclipse.org/Servlet_Example_(BIRT)_2.1 Why can you not use POJO runtime? The error you are getting is most likely because of birt home set incorrectly or a permission problem on folder. The POJO runtime ....

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 18 Jul 2012 - 03:21 PM

The POJO runtime does not need the configuration and plugins directory and hence should not fail on permission. Also if you are using it in a servlet make sure to not set birt home and use PlatformServletContext

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 18 Jul 2012 - 03:22 PM

BTW the OSGi runtime is available for 4.2 on the full downloads page.

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 05:00 PM

when you said pojo runtime, do you mean this: http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-4_2_0-201206131143/birt-runtime-4_2_0.zip

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 18 Jul 2012 - 05:23 PM

The POJO runtime is in that zip along with the viewer. All you need for the runtime are the jars in the reportengine/lib directory

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 05:49 PM

http://wiki.eclipse.org/Servlet_Example_(BIRT)_2.1 Is this the same as the webreport in your example? The structure of webreport you provided is a little strange. Could you please provide a runnable project of webreport? Thank you

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 18 Jul 2012 - 05:56 PM

What version do you want? I will send you a jar with the WebReport and BirtEngine classes, and a web.xml. All you need to do is add the reportengine/lib jars to your web-inf/lib. Send me an email and I will reply with the attachments.

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 06:27 PM

Thank you so much! I would like to develop a web app which can open a birt report design and return a html to the client. I can do it in java project, but when I put it into a servlet, I got problems. So when you send me the jar, could you also.......

Leaderboard - 1 time

Changyu

Posted: 18 Jul 2012 - 06:28 PM

When you send me the jar, could you also send me the java files so I can learn and change it? My email is liuchangyu1988@gmail.com. Thank you

Leaderboard - 1 time

Changyu

Posted: 19 Jul 2012 - 12:27 AM

Hi, now it works fine in a normal web app. But when I tried to put it in a gwt project as a servlet, I got this error: java.lang.NoClassDefFoundError: java.util.logging.FileHandler is a restricted class Could you give me some suggestions? Thank you

Leaderboard - 1 time

Changyu

Posted: 19 Jul 2012 - 12:43 AM

It seems that birt wants to create file logger but rejected by gwt

mao9

Posted: 15 Oct 2012 - 07:54 PM

Hi,JasonW! I'm learning to use eclipse-reporting-juno-SR1-win32 to creat a java project and load "new_report_6.rptdesign" file.I put the reportengine at "G:birt-runtime-4_2_1ReportEngine".But i get the problem that Exception in thread "main" .....

mao9

Posted: 15 Oct 2012 - 08:02 PM

java.lang.NoClassDefFoundError:org/eclipse/core/runtime/CoreException.Could you help me and send me two examples that loaded by a java project and the other one loaded by web app so that i can do it. My email is liangzhijun4@163.com. Thank you very much!

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 15 Oct 2012 - 10:14 PM

I am not exactly sure what you want. Can you give some more detail?

mao9

Posted: 16 Oct 2012 - 08:10 AM

I'm so sorry for my poor English . I just want use Birt to creat html/pdf document from a **.rptdesign document. Now I encounter a problem when i use eclipse with Birt 4.2.0. The problem shows as follows:.....

mao9

Posted: 16 Oct 2012 - 08:11 AM

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException at org.eclipse.birt.core.framework.Platform.createPlatformLauncher(Platform.java:115) at org.eclipse.birt.core.framework.Platform.startup(Platform.java:74)..

mao9

Posted: 16 Oct 2012 - 08:12 AM

at creat.CreatBirt.main(CreatBirt.java:29) Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.CoreException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method)...

mao9

Posted: 16 Oct 2012 - 08:12 AM

at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more...

mao9

Posted: 16 Oct 2012 - 08:13 AM

Could you give me some suggestion about this problem , provide a runnable project of webreport and a runnable java project? Thank you very much!

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 16 Oct 2012 - 08:47 AM

I sent you an email. Did you get it? If so I will respond to it.

mao9

Posted: 17 Oct 2012 - 01:14 AM

Yes , I can receive your email but the system resist my reply.

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 19 Oct 2012 - 07:24 AM

can you try jasonweathersby at windstream dot net

Forum - 1 post

Vinoth1990

Posted: 26 Nov 2012 - 10:16 PM

Hi Jason, Can u pls send me a sample for DE API and RE API with Birt runtime 4_2_1.. mail id is vkvinothraj@gmail.com

DevShare - 100 postsForum - 2,000 postsCommunity Advisor

JasonW

Posted: 27 Nov 2012 - 08:54 AM

The examples in this dev share will work in 4.2.1, just remove the config.setBIRTHome line and add the reportengine jars to the classpath.
 
Filter More