loading dynamic librares with JNI

Discussion in 'Java' started by Brzezi, Jun 29, 2004.

  1. Brzezi

    Brzezi Guest

    Hi.

    How to make java searching library files "*.so" in current directory on
    loading them when using JNI, not
    in default "lib" directory of java instalation?

    thanks for any answer.

    Pozdrawiam
    Brzezi
    --
    [ E-mail: ][ Je\xB6li Tw\xF3j system operacyjny potrzebuje ]
    [ Ekg: #3781111 ][ programu antywirusowego - UCIEKAJ... i ]
    [ LinuxUser: #249916 ][ zdob\xB1d\xBC Linuksa! ]
    [ --- Tim Wright ]
     
    Brzezi, Jun 29, 2004
    #1
    1. Advertisements

  2. Brzezi

    Ivan Kelly Guest

    Brzezi wrote:
    > Hi.
    >
    > How to make java searching library files "*.so" in current directory on
    > loading them when using JNI, not
    > in default "lib" directory of java instalation?
    >
    > thanks for any answer.
    >
    > Pozdrawiam
    > Brzezi

    not sure in *nix but in windows you to do this you need to have "." in
    your PATH. in *nix im guessing you must have "." in your LD_LIBRARY_PATH
    environment variable.

    -ivan
     
    Ivan Kelly, Jun 30, 2004
    #2
    1. Advertisements

  3. Brzezi

    Brzezi Guest

    ┬Âro, 30 cze 2004 o 11:13 GMT, Ivan Kelly napisa┬│(a):

    > not sure in *nix but in windows you to do this you need to have "." in
    > your PATH. in *nix im guessing you must have "." in your LD_LIBRARY_PATH
    > environment variable.


    Thanks, it works :)

    Pozdrawiam
    Brzezi
    --
    [ E-mail: ][ Ta sygnatura zostala automagicznie ]
    [ Ekg: #3781111 ][ wygenerowana programem Signify v1.14. ]
    [ LinuxUser: #249916 ][ Po ten i inne super programy, ]
    [ zajrzyj na http://www.debian.org/ ]
     
    Brzezi, Jun 30, 2004
    #3
    1. Advertisements

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. Lancelot
    Replies:
    6
    Views:
    1,107
    Roedy Green
    Oct 6, 2003
  2. Alex Hunsley

    IBM's JNI fails where Sun's JNI works

    Alex Hunsley, Nov 3, 2003, in forum: Java
    Replies:
    4
    Views:
    1,108
    Alex Hunsley
    Nov 4, 2003
  3. Alex Hunsley
    Replies:
    4
    Views:
    1,132
    Alex Hunsley
    Nov 14, 2003
  4. Pasturel Jean-Louis

    Porting JNI Windows under JNI LINUX + Wine ?

    Pasturel Jean-Louis, Feb 29, 2004, in forum: Java
    Replies:
    5
    Views:
    1,199
    Pasturel Jean-Louis
    Mar 3, 2004
  5. hilz
    Replies:
    1
    Views:
    544
  6. vasanth
    Replies:
    0
    Views:
    3,260
    vasanth
    Jan 25, 2005
  7. Kiran

    Problem loading JNI library

    Kiran, Feb 24, 2005, in forum: Java
    Replies:
    8
    Views:
    8,943
    sid Blane via JavaKB.com
    Mar 16, 2005
  8. bgabrhelik
    Replies:
    0
    Views:
    1,169
    bgabrhelik
    Sep 29, 2009
Loading...