Thank you for your quick reply. I still have a problem in the method *createComponentInstance * for example: instance = fact.*createComponentInstance*(props); =>I get the following message:The method createComponentInstance(Hashtable) is undefined for the type SunPCSC.Factory Do you have an idea about this problem, please? Thank you for answering me. Best regards,
-- Fairouz Fakhfakh Master Student National School of Engineers of SFAX Research group ReDCAD http://WWW.redcad.org <http://www.redcad.org/> 2012/3/17 Clement Escoffier <[email protected]> > Hi, > > > Fors the first error, just add the iPOJO runtime jar to your classpath. If > you're using Maven, add: > <dependency> > <groupId>org.apache.felix</groupId> > <artifactId>org.apache.felix.ipojo</artifactId> > <version>1.8.0</version> > </dependency> > > For the second issue, check that you actually have all imports from your > class set correctly. java.util.Properties extends HashTable so have the put > method. > > Regards, > > Clement > > On 17.03.2012, at 02:19, Fairouz Fakhfakh wrote: > > > Hello, > > I would like to create dynamic instance with iPOJO. > > I tried to follow this link: > > http://felix.apache.org/site/how-to-use-ipojo-factories.html > > but I have problems such: "ComponentInstance cannot be resolved to a > type" > > and "The method put(String, String) is undefined for the type Properties" > > So, it is possible to give me an example of java class or bundle creating > > component instance dynamically with IPOJO? > > Thank 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/> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

