JFreeChart as plugin Eclipse RCP

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
smudla2
Posts: 16
Joined: Tue Sep 04, 2007 2:24 pm

JFreeChart as plugin Eclipse RCP

Post by smudla2 » Fri May 30, 2008 1:15 pm

Is it possible to be create JFreeChart libraries as plugin Eclipse RCP by using 'Plug-in from existing JAR archives' in Eclipse?
I created this (by compile not error) but after start application it showed 'Could not restore workbench layout: Could not create view: ...'

My problem:
I have several plugins which use JFreeChart as JAR in classpath (http://www.vogella.de/articles/EclipseJ ... ticle.html)
This is OK but... I have in each plugin JARs (JFreeChart as JARs) => a lot of space on my hard disk. I want to have only one library (JARs JFreeChart) and this library use in each plugins as 'Dependencies'

Is it possible?

Thanks.

Martin

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Fri May 30, 2008 1:18 pm

Why dont you make a plugin that has JFreeChart as only library and then you tell your other plugins to use that JfreeChart-base-plugin as dependency. This should solve all your problems.

smudla2
Posts: 16
Joined: Tue Sep 04, 2007 2:24 pm

Post by smudla2 » Fri May 30, 2008 1:53 pm

Thanks. Good idea. I tried it but it doesn't work...
I don't know why...

Martin

Locked