Skip to main content



      Home
Home » Archived » BIRT » How to run a BIRT report through command line
How to run a BIRT report through command line [message #948109] Wed, 17 October 2012 15:18 Go to next message
Eclipse UserFriend
This is what I have done so far :

set BIRT_HOME to Report Engine directory..

Command am using:

genReport -f PDF -o test.pdf -F samples/hello_world.rptdesign

Error:

classNotFoundException: org.eclipse.birt.report.engine.api.ReportRunner



Any suggestions ???
Re: How to run a BIRT report through command line [message #948598 is a reply to message #948109] Thu, 18 October 2012 03:10 Go to previous messageGo to next message
Eclipse UserFriend
I think you have to set your BIRT_HOME with the birt runtime folder, not the reportEngine folder. If you run your batch with Windows in a .bat, be careful to use a short path. In my case i have put the runtime just under the disk root:

Set BIRT_HOME=D:\birt
%BIRT_HOME%\ReportEngine\genReport.bat -runrender -o "%BIRT_HOME%\ReportEngine\samples\output.html" -f html "%BIRT_HOME%\ReportEngine\samples\hello_world.rptDesign"
Re: How to run a BIRT report through command line [message #948904 is a reply to message #948598] Thu, 18 October 2012 09:57 Go to previous messageGo to next message
Eclipse UserFriend
donino donino wrote on Thu, 18 October 2012 03:10
I think you have to set your BIRT_HOME with the birt runtime folder, not the reportEngine folder. If you run your batch with Windows in a .bat, be careful to use a short path. In my case i have put the runtime just under the disk root:

Set BIRT_HOME=D:\birt
%BIRT_HOME%\ReportEngine\genReport.bat -runrender -o "%BIRT_HOME%\ReportEngine\samples\output.html" -f html "%BIRT_HOME%\ReportEngine\samples\hello_world.rptDesign"



Hi,

I just cross checked,, the BIRT_HOME is set to ReportEngine.

here is the right path that am using: set BIRT_HOME=C:\birt-runt
ime-2_6_2\birt-runtime-2_6_2\ReportEngine

and am still getting the same error.

Re: How to run a BIRT report through command line [message #949013 is a reply to message #948904] Thu, 18 October 2012 11:49 Go to previous messageGo to next message
Eclipse UserFriend
May be i was not clear in my first answer, but i think you must NOT set it to the reportEngine, but to its parent folder, so in your case it could be C:\birt-runtime-2_6_2\birt-runtime-2_6_2



Re: How to run a BIRT report through command line [message #949026 is a reply to message #949013] Thu, 18 October 2012 11:59 Go to previous messageGo to next message
Eclipse UserFriend
donino donino wrote on Thu, 18 October 2012 11:49
May be i was not clear in my first answer, but i think you must NOT set it to the reportEngine, but to its parent folder, so in your case it could be C:\birt-runtime-2_6_2\birt-runtime-2_6_2






Yup that worked.. Great Smile


one more thing, please tell me how do I set report Parameters through command line ?
Re: How to run a BIRT report through command line [message #949053 is a reply to message #949026] Thu, 18 October 2012 12:33 Go to previous messageGo to next message
Eclipse UserFriend
You could use -p option in your command line:

genReport.bat -p "myParamName1=myParamValue1" -p "myParamName2=myParamValue2" -f PDF -o output.pdf -F sample.rptdesign
Re: How to run a BIRT report through command line [message #949068 is a reply to message #949053] Thu, 18 October 2012 12:51 Go to previous messageGo to next message
Eclipse UserFriend
donino donino wrote on Thu, 18 October 2012 12:33
You could use -p option in your command line:

genReport.bat -p "myParamName1=myParamValue1" -p "myParamName2=myParamValue2" -f PDF -o output.pdf -F sample.rptdesign



Tried that but that doesnt work.. first parameter works fine but the next ones are no recognized...

Here is my command:

genReport.bat -o sample.pdf -f PDF -p "date=1800-01-01" -p "secSymbl=TFCCP" -p "secSymb2=TFTDP" -p "secSymb3=TFINP" -p "actID=01119S" -p "fromDate=11" -p "toDate=333" SampleReport.rptdesign
Re: How to run a BIRT report through command line [message #950320 is a reply to message #949068] Fri, 19 October 2012 16:22 Go to previous messageGo to next message
Eclipse UserFriend
Vani Ra wrote on Thu, 18 October 2012 12:51
donino donino wrote on Thu, 18 October 2012 12:33
You could use -p option in your command line:

genReport.bat -p "myParamName1=myParamValue1" -p "myParamName2=myParamValue2" -f PDF -o output.pdf -F sample.rptdesign



Tried that but that doesnt work.. first parameter works fine but the next ones are no recognized...

Here is my command:

genReport.bat -o sample.pdf -f PDF -p "date=1800-01-01" -p "secSymbl=TFCCP" -p "secSymb2=TFTDP" -p "secSymb3=TFINP" -p "actID=01119S" -p "fromDate=11" -p "toDate=333" SampleReport.rptdesign



anybody ??
Re: How to run a BIRT report through command line [message #950593 is a reply to message #950320] Fri, 19 October 2012 21:43 Go to previous messageGo to next message
Eclipse UserFriend
That should work, how you have it. You're not getting any errors? The report is just running with only one parameter set?
Re: How to run a BIRT report through command line [message #953871 is a reply to message #950593] Mon, 22 October 2012 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Michael Williams wrote on Fri, 19 October 2012 21:43
That should work, how you have it. You're not getting any errors? The report is just running with only one parameter set?



yes i get erro.. the second paramter is not recognized at all. only the first one is picked up correctly.
Re: How to run a BIRT report through command line [message #954220 is a reply to message #953871] Mon, 22 October 2012 17:50 Go to previous messageGo to next message
Eclipse UserFriend
What is the error that you get?
Re: How to run a BIRT report through command line [message #1786791 is a reply to message #948109] Fri, 11 May 2018 11:44 Go to previous message
Eclipse UserFriend
Hi

I am having a similar error,

I am trying to run a BIRT report through the command line

I've set the BIRT_HOME variable to the ReportDesign's parent folder,

I'm using the same command:

genReport -f PDF -o test.pdf -F samples/hello_world.rptdesign

I've had the same error you did : classNotFoundException: org.eclipse.birt.report.engine.api.ReportRunner

I've corrected that error just like you did but I still get this error:

ECHO off
mai 11, 2018 3:27:23 PM org.eclipse.birt.report.engine.api.ReportRunner readConfigurationFile
SEVERE: file: C:\birt\birt-runtime-2_5_2\ReportEngine not exists!

Did you or anyone here had this error?

Thanks,

Alexandre
Previous Topic:Generating DOC file using BIRT RE API
Next Topic:How to run Eclipse BIRT report from command line windows
Goto Forum:
  


Current Time: Sat Jul 19 12:53:41 EDT 2025

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

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

Back to the top