loading jvm (libjvm.so) and setting LD_LIBRARY_PATH

Discussion in 'Java' started by Naresh Agarwal, Jun 30, 2005.

  1. Hi

    I'm writing a program to use JNI Invocation APIs on linux/solaris,
    i.e., calling a Java program from C/C++.

    I'm dynamically loading the JVM library and then calling
    "JNI_CreateJavaVM" function after getting the symbol. I'm providing the
    *full path* the libjvm.so to be loaded.

    Now after specifying the full path of libjvm.so, do we need to specify
    any thing extra in LD_LIBRARY_PATH (i.e., location of any other
    libraries, which may be loaded by libjvm.so)?

    Is there any documentation/guideline for setting the LD_LIBRARY_PATH
    while loading libjvm.so and creating VM

    thanks,
    Naresh
     
    Naresh Agarwal, Jun 30, 2005
    #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. Replies:
    0
    Views:
    576
  2. Spitfire
    Replies:
    2
    Views:
    16,650
    Thomas Fritsch
    Feb 15, 2007
  3. sapsi

    Python,SWIG and libjvm

    sapsi, Sep 21, 2007, in forum: Python
    Replies:
    3
    Views:
    763
    Graham Dumpleton
    Sep 21, 2007
  4. Moritz Karbach

    Problem with setting LD_LIBRARY_PATH

    Moritz Karbach, Apr 21, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    224
    Moritz Karbach
    Apr 21, 2005
  5. Lax
    Replies:
    2
    Views:
    397
    Peter J. Holzer
    Apr 14, 2007
Loading...

Share This Page