UnsatisfiedLinkError Native Library path/sample.so already loaded in another classloader

Solution Verified - Updated -


Caused by: java.lang.UnsatisfiedLinkError: Native Library /opt/path/java/lib64/example.so already loaded in another classloader
        at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2468)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2659)
        at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
        at java.base/java.lang.System.loadLibrary(System.java:1873)
        at deployment.sample.war//com.ibm.mq.jmqi.local.LocalMQ.loadLib(LocalMQ.java:1110)
        ... 23 more


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • Red Hat Enterprise Linux (RHEL)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content