Getting error "The native JNI library 'mqjbnd' was not found.[3=mqjbnd]" - Websphere

This is a discussion on Getting error "The native JNI library 'mqjbnd' was not found.[3=mqjbnd]" - Websphere ; Hi all! I have the following configuration: - Websphere application server 7.0.0.5 - Websphere MQ v6.0.0 -running on windows I am getting the following error "The native JNI library 'mqjbnd' was not found. [3=mqjbnd]" System.out says com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Getting error "The native JNI library 'mqjbnd' was not found.[3=mqjbnd]"

  1. Getting error "The native JNI library 'mqjbnd' was not found.[3=mqjbnd]"

    Hi all!

    I have the following configuration:
    - Websphere application server 7.0.0.5
    - Websphere MQ v6.0.0
    -running on windows

    I am getting the following error
    "The native JNI library 'mqjbnd' was not found. [3=mqjbnd]"

    System.out says

    com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI
    library 'mqjbnd' was not found. [3=mqjbnd]
    at com.ibm.mq.jmqi.local.LocalMQ$1.run(LocalMQ.java:2 79)
    at java.security.AccessController.doPrivileged(Access Controller.java:
    202)
    at com.ibm.mq.jmqi.local.LocalMQ.initialise_inner(Loc alMQ.java:244)
    at com.ibm.mq.jmqi.local.LocalMQ.initialise(LocalMQ.j ava:207)
    at com.ibm.mq.jmqi.local.LocalMQ.(LocalMQ.java:998)
    at com.ibm.mq.jmqi.local.LocalServer.(LocalServer.java:173)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native
    Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce
    (NativeConstructorAccessorImpl.java:41)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance
    (DelegatingConstructorAccessorImpl.java:39)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:515)
    at com.ibm.mq.jmqi.JmqiEnvironment.getInstance(JmqiEn vironment.java:
    675)
    at com.ibm.mq.jmqi.JmqiEnvironment.getMQI(JmqiEnviron ment.java:610)
    at
    com.ibm.msg.client.wmq.factories.WMQXAConnectionFa ctory.createV7ProviderConnection
    (WMQXAConnectionFactory.java:164)
    ... 37 more
    Caused by: java.lang.UnsatisfiedLinkError: mqjbnd (Not found in
    java.library.path)
    at java.lang.ClassLoader.loadLibraryWithPath(ClassLoa der.java:998)
    at java.lang.ClassLoader.loadLibraryWithClassLoader(C lassLoader.java:
    962)
    at java.lang.System.loadLibrary(System.java:465)
    at com.ibm.mq.jmqi.local.LocalMQ.loadLib(LocalMQ.java :966)
    at com.ibm.mq.jmqi.local.LocalMQ$1.run(LocalMQ.java:2 58)

    I have already set MQ_INSTALL_ROOT to "C:\Program Files\IBM\Websphere
    MQ"
    using admin console and native path under JMS provider to $
    {MQJMS_LIB_ROOT} where MQJMS_LIB_ROOT=${MQ_INSTALL_ROOT}/java/lib. I
    have to use 'Bindings' mode only

    I am new to all these things. Any help would be greatly appreciated

    Regards
    Vivek

  2. Re: Getting error "The native JNI library 'mqjbnd' was not found.[3=mqjbnd]"

    Try adding all the mq jars( connector.jar ,jms.jar,mq.jar...) to the JVM classpath

    Application servers > appserver name > Process Definition > Java Virtual Machine >Classpath

  3. Re: Getting error "The native JNI library 'mqjbnd' was not found.[3=mqjbnd]"

    @chintuk - what solution you have provided is for MQ7
    @vivek - Resources>jms>JMS providers > WebSphere MQ messaging provider

    Native library path : C:\Program Files\IBM\WebSphere MQ\java\lib

+ Reply to Thread