The comma was the issue.  Is there a bundle verification tool that you know
of?  I'm using Bnd to create the bundle.  Seems like it would be able to
catch an improper statement/property.

A side note, a prior iteration I included the "lib" portion of the shared
library filename in the loadLibrary call (i.e.,
System.loadLibrary("libboardio")).  Where is it documented how loadLibrary
is implemented for a particular OS.



Ali Naddaf-3 wrote:
> 
> Looking at your manifest, it seems that there is a "," missing between 
> the two libraries (the dll and so ones). Also, get rid of the spaces 
> around your "=", I am not sure if that is legal to have spaces or not.
> 
> HTH,
> Ali.
> 
> On 6/22/2010 9:12 AM, daveh91 wrote:
>> I have a bundle attached which will simply load a library and try to make
>> a
>> call to the library.  The bundle works in the Windows environment but not
>> on
>> my target environment (Linux, ARM).  The bundle contains both a Windows
>> .dll
>> and a Linux .so file (and the Java class file).
>>
>> The exact message I get (excluding the trace):
>> java.lang.UnsatisfiedLinkError: no boardio in java.library.path
>>
>> I'm not real clear on how this is supposed to work in Felix, as in the
>> Windows case, the dll is not actually in the java.library.path but is
>> still
>> loaded.
>>
>> Can someone explain how the System.loadLibrary function works in Felix to
>> look in the proper place and decide to extract the library from the jar
>> and
>> place it in the bundle.jar-lib directory in the cache.
>>
>> I assume Felix extracts the library file then loads the library from that
>> location, but then I don't understand the "no boardio in
>> java.library.path"
>> message.  Is that property temporarily modified?
>>
>> Obviously the main thing I'm trying to figure out is why things aren't
>> working. http://old.nabble.com/file/p28960600/platform_interface.jar
>> platform_interface.jar
>>
>> I've noticed in the Linux environment, a bundle.jar-lib directory is not
>> created for the bundle.
>>    
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Get-UnsatisfiedLinkError-when-trying-to-start-bundle-with-native-library-tp28960600p28962448.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to