I've created a class that handles a lot of dynamic libraries in OSGi if you use
JNA. You can specify additional libraries that your library depends on, even if
they are not needed in all environments. It will also provide a lot more
diagnostic information if it fails.
https://github.com/aQute-os/biz.aQute.osgi.util/blob/master/biz.aQute.osgi.jna.support.provider/src/main/java/biz/aQute/osgi/jna/support/provider/DynamicLibrary.java
Kind regards,
Peter Kriens
> On 27 Jan 2021, at 19:41, Todor Dimitrov <[email protected]> wrote:
>
> Hello,
>
> I have a problem resolving native code on Windows 10. The following manifest
> declaration does not work:
>
> Bundle-NativeCode: sqlite-native/windows/x86/sqlitejdbc.dll; processor=x86;
> osname=win32
>
> whereas removing 'processor' and 'osname' seems to solve the problem, i.e.
>
> Bundle-NativeCode: sqlite-native/windows/x86/sqlitejdbc.dll
>
> I've tried specifying the 'org.osgi.framework.processor' and
> 'org.osgi.framework.os.name' like so:
>
> -Dorg.osgi.framework.processor=x86 -Dorg.osgi.framework.os.name=win32
>
> Any ideas? I'm using the following environment:
>
> Windows 10 32-bit
> Oracle Java 1.8.0_281
> Eclipse 4.16 / Equinox 3.20.200.v20200528-0603
>
> Thanks in advance,
> Todor
> _______________________________________________
> equinox-dev mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev