Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Question to RCP Report Designer, how to add entries in the BIRT-classpath?
Jenny
Hello all,<br />
<br />
I have a big big problem since a longer time. Please could you help me?<br />
<span style='color: blue'>My aim is running my report with the RCP report designer using scripted data sources in form of JAR-files and a properites-file.</span><br />
<br />
I know that JAR-Files (containing scripted data sources) have to copied into following path:<br />
<br />
birt-rcp-report-designer-2_5_1pluginsorg.eclipse.birt.report.viewer_2.5.1.v20090821birtscriptlib<br />
<br />
I also use a properties-file. The scripted data sources (Java-Classes) always access on the properties-file. The properties-file should be in the path of the scripted-datasources. But if I put the file inside, it doesn´t work.<br />
<strong class='bbc'>Only if the properties-file is known in classpath the report works.</strong><br />
<br />
<strong class='bbc'>Now my question, where I have to add or change the classpath?</strong><br />
<br />
I try it to change the MANIFEST.MF path:<br />
birt-rcp-report-designer-2_5_1pluginsorg.eclipse.birt.report.viewer_2.5.1.v20090821META-INF<br />
and I added in the section <strong class='bbc'>Bundle-ClassPath, birt/scriptlib</strong><br />
<br />
[highlight]<br />
(excurses:<br />
<strong class='bbc'>I also tried it with the <span style='color: blue'>BIRT report engine (birt-runtime-2_5_1)</span> console-based and my report with scripted data sources are working</strong><br />
I putted the jars and properties-file into the folder:<br />
birt-runtime-2_5_1ReportEnginelib<br />
<br />
and changed the genReport.sh<br />
while I added that variable $BIRT_HOME/ReportEngine/lib/ to the BIRTCLASSPATH<br />
the properties-file is recognised than.<br />
)<br />
[/highlight]<br />
<br />
Please could you help me.<br />
<br />
Thank you<br />
<br />
Bye<br />
Jenny
Find more posts tagged with
Comments
Jenny
It is really interessting: With the BIRT report engine (birt-runtime-2_5_1) console-based the report works. If I remove the properties-file, I'll get the same exception like with the rcp report designer.
By attachment you can see the stacktrace.
The fault is because of the missing properties entry in the classpath, that is problem, i am really sure. But how can I add this properties-file in the classpath within rcp report viewer?
Thx+Bye
Jenny
Jenny
I could solute it
It was such an easy and embarrassing misstake. BIRT is used in our firm, and the administrator installed on all PCs Java 1.5. But the report was developed with Java 1.6.
Sadly the stacktrace wasn´t meaningful enough, to find out the problem quickly.
Apropos the properties-file have to be put into the path, too:
birt-rcp-report-designer-2_5_1pluginsorg.eclipse.birt.report.viewer_2.5.1.v20090821birtscriptlib
Thank you
Bye
Jenny