Java Program can not load JNI Library

Discussion in 'C Programming' started by adnan.iiui@gmail.com, Apr 11, 2011.

  1. adnan.iiui@gmail.com

    adnan.iiui@gmail.com

    Joined:
    Apr 11, 2011
    Messages:
    3
    Hi...
    I am writing a simple application to call c++ code from java and for this i created a dll file in visual studio but when i try to run program fails to load JNI libaray.
    both Main.class and dll are in same folder.

    Error:
    java.lang.unsatisfiedLinkedError
    MyLib.dll can not load IA 32 bit .dll on AMD 64 bit platform.
     
    adnan.iiui@gmail.com, Apr 11, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Hunsley

    IBM's JNI fails where Sun's JNI works

    Alex Hunsley, Nov 3, 2003, in forum: Java
    Replies:
    4
    Views:
    861
    Alex Hunsley
    Nov 4, 2003
  2. Pasturel Jean-Louis

    Porting JNI Windows under JNI LINUX + Wine ?

    Pasturel Jean-Louis, Feb 29, 2004, in forum: Java
    Replies:
    5
    Views:
    925
    Pasturel Jean-Louis
    Mar 3, 2004
  3. vasanth
    Replies:
    0
    Views:
    2,728
    vasanth
    Jan 25, 2005
  4. mark.faine@gmail.com

    JNI 64bit JVM, load 32bit native library

    mark.faine@gmail.com, Aug 3, 2006, in forum: Java
    Replies:
    4
    Views:
    7,937
    tungjty
    Jun 22, 2011
  5. shivaraj
    Replies:
    8
    Views:
    35,447
    antan_sw
    Nov 9, 2009
Loading...

Share This Page