Try creating a lib folder in the bundle and running the bnd build.  The new
CRXDE should embed the jar in the bundle's root.

Sarwar

On Mon, May 30, 2011 at 11:24 PM, JCR <[email protected]> wrote:

> Hi all,
>
> I need to bind the httpComponents library into an Felix OSGi bundle
> (implements a repo-Listener).
>
> So, I added the libs from httpcomponents-client-4.1.1-bin.zip to the
> /resources directory of the bundle (plus codec-lib).
>
> In CRXDE, I added the following line to the bundle's bnd file:
>
> Bundle-ClassPath: ., httpclient-4.1.1.jar, httpclient-cache-4.1.1.jar,
> httpcore-4.1.jar, httpmime-4.1.1.jar, commons-logging-1.1.1.jar,
> commons-codec-1.4.jar
>
> Chosen with the right mouse on the bnd file, build->refresh class path.
>
> At this point, CRXDE pointed in the src java file of the bundle to various
> import errors. Ignoring that I tried building the bundle, but this also
> resulted in various bound errors in the console, and no artifact.
>
> Googled for hours, but really cannot figure out what's wrong here. Thanks
> for any help.
>
> -- Juerg
>

Reply via email to