java.lang.UnsatisfiedLinkError: Native Library "foo" already loaded in another classloader

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

When installing an APK, it automatically extracts the libraries of the right arch type and has them available for System.loadLibrary. But, if you're trying to load a non-standard library, the installer won't know your app has 32bit native code.

Solutions on the web

via gztscf.com by Unknown author, 1 year ago
Native Library "foo" already loaded in another classloader
via Stack Overflow by user1924513
, 2 years ago
Native Library /home/Testadm/tomcat/apache-tomcat-6.0.39/webapps/Test/WEB-INF/lib/libTestJNI.so already loaded in another classloader
via Stack Overflow by BobbyD17
, 2 years ago
{path}/libjdic.jnilib: no suitable image found. Did find: {path}/libjdic.jnilib: no matching architecture in universal wrapper</p> <pre><code> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
via Stack Overflow by please delete me
, 2 years ago
Native Library C:\Users\Mandar.jssc\windows\jSSC-0.9_x86.dll already loaded in another classloader
via blogspot.com by Unknown author, 1 year ago
Native Library C:\Users\hhb\AppData\Local\Temp\jline_.dll already loaded in another classloader
via Oracle Community by 843802, 1 year ago
Native Library C:\Program Files\ServiceApps\Packages\myNative.dll already loaded in another classloader
java.lang.UnsatisfiedLinkError: Native Library "foo" already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1715)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
134 times, 1 year ago
44 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.