Hi,

On Sat, Mar 17, 2012 at 7:01 AM, Fairouz Fakhfakh <
[email protected]> wrote:

> Hello,
> I have a problem with declaring component instance:
> ComponentInstance cannot be resolved to a type
>
> I try to add : import org.osgi.service.component.ComponentInstance;
> But Eclipse generates this  error:
> The import org.osgi.service.component cannot be resolved
>

If your project has a POM, add felix-scr dependency to it and then rebuild.
If you're directly trying in eclipse, download felix-scr dependency and add
it in your project's Java build path!

Hope this helps!


> So, can someone help me to resolve this problem?
> Thank you for answaring me.
> Best regards,
>
> --
> Fairouz Fakhfakh
>
> Master Student
> National School of Engineers of SFAX
>
> Research group ReDCAD
> http://WWW.redcad.org <http://www.redcad.org/>
>



-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Software Engineer,
WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to