[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] External jars referenced in a bundle
- From: "Lois Desplat" <lois.desplat@xxxxxxxxx>
- Date: Thu, 20 Sep 2007 09:34:47 -0700
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eMHVz2JNzDtsotnGD9S/nrqrY7KIyCm3arTJ1zW7FsNSe0kTaPKecXiekOlg59YJRlY07ELr+9V5AaT/SuDZ3GTdLryFzjvskS3eIsQaebJi4GHUq6q7vYev6Ul2eLHS14IVis6PmwtzXm+On8rcbMSzVmnpuZ/zUdCg2rH7MCo=
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