I want to do a class that receives a libname as a parameter in constructor. Depending on that parameter different objects instanciated of this class have to load different dynamic libraries with a call to system.loadlibrary(libname). For example, object 1 loads library1 and object 2 load library 2 but the problem is both are loading the same library. Not sure is second call to loadlibrary is ignored or the second is overloading the first. Is there a way to do this?
Thanks.
0 comments:
Post a Comment