'BIRT runtime 4.6.0 batch file not running
Trying to run a batch file on the latest version of BIRT. Upgraded from 3.7.1 to 4.6.0. The .bat file is exactly the same (other than changing the BIRT_HOME system variable).
The steps I took were as follows:
- Downloaded 4.6.0 from an official mirror
- Copied 2 jar files across into the BIRT_HOME/ReportEngine/lib folder. These jar files are jtds.jar and ojdbc6.jar so I can connect to an external database
- Copied over my .bat file, report design file and report properties file
- Edited the .bat file to give the correct location to BIRT_HOME
- Executed the .bat file from command line
The error I get is:
Could not find or load main class org.eclipse.birt.report.engine.api.ReportRunner
The contents of my .bat file are:
@echo off
set BIRT_HOME=C:\birt-460\ReportEngine\
call %BIRT_HOME%genReport.bat -m runrender -o "output.PDF" -f PDF -F "reportproperties.properties" "reportproperties.rptDesign"
I can confirm that the following JAR file is present in my /lib folders: org.eclipse.birt.runtime_4.6.0-20160607.jar
The part I'm struggling with is that these steps work in 3.7.1 and 4.2.2, but not 4.6.0
Anyone got any ideas?
Solution 1:[1]
This is a bug in the 4.6.0 BIRT release.
As a workaround, simply remove the ECLIPSE_.RSA and ECLIPSE_.SF, from the META-INF/ folder in org.eclipse.birt.runtime_4.6.0-20160607.jar, which is in $BIRT_HOME/ReportEngine/lib/.
Solution 2:[2]
This is fixed in the BIRT 4.9 runtime. https://projects.eclipse.org/projects/technology.birt
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Campa |
| Solution 2 | Colin |
