Home
Analytics
Birt viewer on a Standalone java application whitout server
Clientes
<p><span>Hi guys.</span><br>
</p>
<p><span>Sorry for my english.</span><br><br><span>I'm new in Eclipse and Birt</span></p>
<p><span>I've been doing some tests with neon Eclipse Birt (4.6.0). Reports with parameters and without them, graphics, etc, etc. When i launch reports inside de Eclipse Birt RD environment, everything works great.</span></p>
<p><span>Now i need to make an independent java applications (runable jar file that works from Windows, Mac or Linux) than call the previously generated report in Eclipse (eg "c:/temp/informe.rptdesing") and preview the report in the "report viewer" with export options (like from the eclipse environment) and can decide whether to print or not.<br><br><span>Everything I've been seeing are examples using web development and have installed tomcat server.<br>
Do not you can use ReportViewer from separate programs without network environments jar?</span></span><br>
</p>
<p>I only need make the report and call them from a java standalone jar file.</p>
<p> </p>
<p><span>Thank you for your help.</span></p>
Find more posts tagged with
Comments
Clement Wong
<p>The sample BIRT viewer is typically deployed in a JavaEE web app. </p>
<p> </p>
<p>If you want standalone, here's a DevShare example with a BIRT report From Java Swing:</p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/448-birt-report-from-java-swing/'>http://developer.actuate.com/community/forum/index.php?/files/file/448-birt-report-from-java-swing/</a></p>
;
<p> </p>
<p>Here's some additional resources:</p>
<p><a data-ipb='nomediaparse' href='
http://www.eclipse.org/birt/documentation/integrating/'>http://www.eclipse.org/birt/documentation/integrating/</a></p>
;
<p><a data-ipb='nomediaparse' href='
http://wiki.eclipse.org/Simple_Execute_(BIRT)_2.1'>http://wiki.eclipse.org/Simple_Execute_(BIRT)_2.1</a></p>
;
Clientes
<p>Hi Clement.</p>
<p>
Thanks for your answer.
</p>
<p>
These examples I have seen yet, but not exactly what I'm looking for.<br>
I need to use Birt Viewer from a java application without any web server installed.<br>
My reports directly connect to a database engine through a jdbc connection and want to display them on screen with the options offered by Birt viewer.<br>
I've been testing other similar report designer (Pentaho, Jaspersoft) and can be done without problems, but I really like the connectivity and flexibility offered to my database for Birt.</p>
<p>
If anyone knows a java code example for use as i need I am grateful.</p>
<p> </p>
<p>Thanks.</p>
olgi
<p>Hi guys,</p>
<p>i'm about to build a standalone java application for running and rendering a birt report.</p>
<p>Everything works fine when I run my application through IntelliJ, but when I put it together in a Jar file, I get this exception:</p>
<p> </p>
<p>Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/report/engine/api/IReportEngine<br>
at consoleWithMenu.ConsoleWithMenu.item1AHandler(ConsoleWithMenu.java:86)<br>
at consoleWithMenu.ConsoleWithMenu$1.Invoke(ConsoleWithMenu.java:56)<br>
at menu.Menu.show(Menu.java:107)<br>
at consoleWithMenu.ConsoleWithMenu.item1Handler(ConsoleWithMenu.java:64)<br>
at consoleWithMenu.ConsoleWithMenu$4.Invoke(ConsoleWithMenu.java:162)<br>
at menu.Menu.show(Menu.java:107)<br>
at consoleWithMenu.ConsoleWithMenu.main(ConsoleWithMenu.java:178)<br>
Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.report.engine.api.IReportEngine<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)<br>
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)<br>
... 7 more<br>
</p>
<p>Please help me with this issue.</p>
<p>Thanks.</p>