|
|
|
|
|
Re: Load font by relative path instead of full path for birt 3.7.2 [message #892592 is a reply to message #892389] |
Thu, 28 June 2012 16:03 |
|
BIRT 3.7.2 has both an OSGi and POJO runtime. If you are using the POJO
runtime the fontsconfig is jarred up in the
org.eclipse.birt.runtime_version.jar. If you use the OSGi runtime you
will have the plugins and configuration directories. POJO runtime is
the default and recommended runtime. Take a look at this bugzilla entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347431
Jason
On 6/27/2012 10:40 PM, Mastura Hanafiah wrote:
> sorry that I accidentally deleted..so continue ..
>
>
> I know with 3.7.2 we don't need these lines, but I'm supposed this is
> the way how to get BIRT reading the plugins? or no?
> However, I'm having nullpointerexception there so not able to startup
> the engine.
>
> Please help.
|
|
|
|
|
Re: Load font by relative path instead of full path for birt 3.7.2 [message #893148 is a reply to message #892990] |
Mon, 02 July 2012 22:13 |
|
I am not certain why the system property is not working but I have added
a comment to the bugzilla entry for this.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347431
Have you tried this?
EngineConfig.setFontConfig(URL)
The URL should point to a file that has similar format to existing
fontsConfig.xml file.
If you want to use the OSGi runtime remove all of the POJO runtime and
download the OSGi runtime for your version. I believe this was first
made available in 3.7.2
http://birtworld.blogspot.com/2012/03/birt-372-new-features.html
Once you download it only include the libs in the reportengine/lib
directory in your classpath. Look at this wiki page:
http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1
While it has older versions the setup is pretty much the same if you are
going to use an OSGi runtime.
Jason
On 7/2/2012 4:45 AM, M H wrote:
> Hi Jason, Besides my question on the font custom directory, I also want
> to know whether it is possible to use OSGi in 3.7. Is there any guide on
> this? I tried this one and put plugins and configuration directories,
> also take all libs from 3.7 (I download from 3.7 osgi), then when
> startup I have error CannotStartupOSGIPlatform.
>
>
|
|
|
|
Re: Load font by relative path instead of full path for birt 3.7.2 [message #893803 is a reply to message #893621] |
Thu, 05 July 2012 14:21 |
|
If you are using the osgi runtime all the required jars for it should be
in the runtime/reportengine/lib directory.
Jason
On 7/4/2012 8:02 PM, M H wrote:
> Hi Jason, I solved the problem now by using the osgi runtime, and put
> some missing jars for org.eclipse.datatools.*..jar from the designer
> plugins.
> I had error earlier (before putting all the missing jars) like "Cannot
> find or process the ODA data source extension configuration..."
> So I tried to copied the missing jar, and errors are all gone.
> Does the osgi package miss any jars?
>
>
> I did not try on EngineConfig.setFontConfig(URL) because my customer
> does not like the idea on putting the fonts separately.
> So, I guess it is fine for now..
>
|
|
|
Powered by
FUDForum. Page generated in 0.03964 seconds