Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

load native library in OSGI bundle

Avatar

Level 2

i am trying loading dll using Bundle-NativeCode but getting below exception while bundle starts

cqse-httpservice %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle XXXXXX: No matching native libraries found.) org.osgi.framework.BundleException: Unresolved constraint in bundle XXXXXX: No matching native libraries found.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

I guess, that's not a problem specific to AEM, but rather a general JNI problem or maybe something special to OSGI and JNI.

kind regards,
Jörg

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

Hi,

I guess, that's not a problem specific to AEM, but rather a general JNI problem or maybe something special to OSGI and JNI.

kind regards,
Jörg

Avatar

Level 10

See http://blog.vogella.com/2010/07/27/osgi/

However most dlls have a equilvant Java library. Its far better to use Java libraries with AEM then try and get dlls to work with AEM.

Avatar

Level 2
While using bundle-nativecode in manifest I am getting error no matching native libraries found