Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Applet jar requirements for BIRT (4.2) ReportEngine
Applet jar requirements for BIRT (4.2) ReportEngine [message #906016] Fri, 31 August 2012 09:23 Go to next message
Bill Moo is currently offline Bill Moo
Messages: 8
Registered: April 2012
Junior Member
Hello.

I want to (need to) write an Applet that allows me to generate parametrised reports (in PDF format) using a Java Applet, but I cannot find anything online that tells me what dependencies (BIRT jar files) need to deployed along with it.

As you'll know I have to list the jars in the applet tag of the web page but I can't find a list of the jars needed. I know the required jar files vary depending on the abilities of my reports (which include charts), but even a minimal list of core required jar files is very elusive.

Can anyone help me here either in the form of a link or a list of jar files that I need to make available.

Bill

Re: Applet jar requirements for BIRT (4.2) ReportEngine [message #906202 is a reply to message #906016] Fri, 31 August 2012 16:49 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Bill

If you download the birt runtime, the required jars are in the
reportengine/lib directory. You can remove data source jars that you do
not need as a start.

Jason

On 8/31/2012 9:23 AM, Bill Moo wrote:
> Hello.
>
> I want to (need to) write an Applet that allows me to generate
> parametrised reports (in PDF format) using a Java Applet, but I cannot
> find anything online that tells me what dependencies (BIRT jar files)
> need to deployed along with it.
>
> As you'll know I have to list the jars in the applet tag of the web page
> but I can't find a list of the jars needed. I know the required jar
> files vary depending on the abilities of my reports (which include
> charts), but even a minimal list of core required jar files is very
> elusive.
>
> Can anyone help me here either in the form of a link or a list of jar
> files that I need to make available.
>
> Bill
>
>
Re: Applet jar requirements for BIRT (4.2) ReportEngine [message #907233 is a reply to message #906202] Mon, 03 September 2012 11:31 Go to previous messageGo to next message
Bill Moo is currently offline Bill Moo
Messages: 8
Registered: April 2012
Junior Member
Thanks for the time Jason. I've downloaded the runtime and copied the runtime_4.2 jar file to the same place as my web page containing the applet.

I've added the jar file to the archive attribute, but I now get an error at start up saying it can't find :

org/eclipse/core/runtime/CoreException
System.out.println("Starting...");
eConfig = new EngineConfig() ;
eConfig.setLogConfig(HOME + "/", Level.SEVERE) ;
eConfig.setLogFile("BirtLog.log") ;
eConfig.setTempDir(HOME);
try {
	System.out.println("Creating Platform Config");
	pConfig = new PlatformConfig() ;
	eConfig.setPlatformContext(new PlatformFileContext(pConfig)) ;
	Platform.startup(eConfig) ;
	System.out.println("Creating Report Factory");
	eFactory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY) ;
System.out.println("Creating Report Engine");
rEngine = eFactory.createReportEngine(eConfig) ;
}
catch (BirtException e)
{
	e.printStackTrace() ;
}

I would really appreciate some help here I'm making no progress whatsoever.

Java Plug-in 10.7.0.10
Using JRE version 1.7.0_07-b10 Java HotSpot(TM) 64-Bit Server VM

--
Bill
Re: Applet jar requirements for BIRT (4.2) ReportEngine [message #908023 is a reply to message #907233] Tue, 04 September 2012 10:58 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Bill

Start off by trying to add all the jars from the
\birt-runtime-4_2_0\ReportEngine\lib directory. You can prune them once
you get it working.

Jason


On 9/3/2012 11:31 AM, Bill Moo wrote:
> Thanks for the time Jason. I've downloaded the runtime and copied the
> runtime_4.2 jar file to the same place as my web page containing the
> applet.
>
> I've added the jar file to the archive attribute, but I now get an error
> at start up saying it can't find :
>
> org/eclipse/core/runtime/CoreException
>
> System.out.println("Starting...");
> eConfig = new EngineConfig() ;
> eConfig.setLogConfig(HOME + "/", Level.SEVERE) ;
> eConfig.setLogFile("BirtLog.log") ;
> eConfig.setTempDir(HOME);
> try {
> System.out.println("Creating Platform Config");
> pConfig = new PlatformConfig() ;
> eConfig.setPlatformContext(new PlatformFileContext(pConfig)) ;
> Platform.startup(eConfig) ;
> System.out.println("Creating Report Factory");
> eFactory = (IReportEngineFactory)
> Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY)
> ;
> System.out.println("Creating Report Engine");
> rEngine = eFactory.createReportEngine(eConfig) ;
> }
> catch (BirtException e)
> {
> e.printStackTrace() ;
> }
>
> I would really appreciate some help here I'm making no progress whatsoever.
>
> Java Plug-in 10.7.0.10
> Using JRE version 1.7.0_07-b10 Java HotSpot(TM) 64-Bit Server VM
>
Previous Topic:apache.commons.io dependency problem
Next Topic:Problem charting datetime
Goto Forum:
  


Current Time: Thu Jul 31 05:25:47 EDT 2014

Powered by FUDForum. Page generated in 0.01898 seconds