[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] External jars referenced in a bundle


I looked at it again this morning and was able to fix it. The problem
was that I was putting my jar files inside the src directory which for
some reason I thought was the root of the bundle. Anyway, it's been
resolved now by putting them actually in the root of the bundle and
adding the jar files to the Bundle-ClassPath: in the Manifest.

Thanks and sorry for the little noise.

On 9/20/07, Peter Kriens <Peter.Kriens@xxxxxxxxx> wrote:
> Can you send the manifest you use?
> Kind regards,
>      Peter Kriens
> LD> Hi,
> LD> I am having a problem that I have been cracking my head on for hours
> LD> and I cannot figure it out. I am sure that it is simple enough though.
> LD> I have the JFreeChart library (for example..I have many other
> LD> dependencies) and I want to use it inside one of my bundles. So I
> LD> understand I have to add it to the Import-Package but the problem is
> LD> that org.jfree is not recognized. jfreechart is in the global
> LD> classpath though. I heard you can reference the jar files with
> LD> Bundle-ClassPath so I added the jar files to that but to no avail.
> LD> If I do not Import-Package I get a java.lang.NoClassDefFoundError for
> LD> one of the jfreechart classes.
> LD> I have tried many other things, but I just cannot get it to work. So
> LD> the question is, how do i get an external jar file to be recognized?
> LD> Thank you very much,
> LD> Lois.
> LD> _______________________________________________
> LD> equinox-dev mailing list
> LD> equinox-dev@xxxxxxxxxxx
> LD> https://dev.eclipse.org/mailman/listinfo/equinox-dev
> --
> Peter Kriens                              Tel +33467542167
> 9C, Avenue St. Drézéry                    AOL,Yahoo: pkriens
> 34160 Beaulieu, France                    ICQ 255570717
> Skype pkriens                             Fax +1 8153772599