loading jvm (libjvm.so) and setting LD_LIBRARY_PATH

N

Naresh Agarwal

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top