felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: declare Component Instance
Date Sat, 17 Mar 2012 02:51:42 GMT
Hi,

On Sat, Mar 17, 2012 at 7:01 AM, Fairouz Fakhfakh <
fairouz.fakhfakh@gmail.com> 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/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message