Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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