loading jvm (libjvm.so) and setting LD_LIBRARY_PATH

loading jvm (libjvm.so) and setting LD_LIBRARY_PATH

Post by Naresh Aga » Fri, 01 Jul 2005 20:20:33


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
 
 
 

1. jdk 1.4 build problem libjvm.so

2. libjvm.so not found on amd64 system with freebsd 7

Hi all,due to this opera errer I get when I want to test the working of my java browser plugin I get a message that libjvm.so is not found on my amd64 box running freebsd 7.The commands I type are:[root@dual /usr/ports/math]# ldd /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so
/usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so:
/libexec/ld-elf.so.1: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so: Unexpected inconsistency: dependency libjvm.so not found
/usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so: exit status 1
[root@dual /usr/ports/math]# ldd /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so
/usr/local/jdk1.6.0/jre/lib/amd64/libjava.so:
/libexec/ld-elf.so.1: /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so: Unexpected inconsistency: dependency libjvm.so not found
/usr/local/jdk1.6.0/jre/lib/amd64/libjava.so: exit status 1
[root@dual /usr/ports/math]# whereis libjvm.so
libjvm.so:

The question is, is there something wrong with my java installation?
[root@dual /usr/ports/math]# pkg_info | grep Java
diablo-jdk-1.6.0.07.02 Java Development Kit 1.6.0_07.02
diablo-jre-1.6.0.07.02 Java Runtime Environment 1.6.0_07.02
javavmwrapper-2.3.2 Wrapper script for various Java Virtual Machines
jdk-1.6.0.3p4_3 Java Development Kit 1.6.0
netbeans55-5.5.1_1 A free and open-source IDE for Java
weka-3.4.13 Data Mining Software in Java

What should I do to let this opera error message go away?opera: Shared object "libjvm.so" not found, required by "opera"






_______________________________________________
XXXX@XXXXX.COM mailing list
http://www.yqcomputer.com/
To unsubscribe, send any mail to " XXXX@XXXXX.COM "

3. /libexec/ld-elf.so.1: Shared object "libjvm.so" not found

4. Crash in CreateJavaVM after loding libjvm.so(jre1.4) from C app dynamically...

5. Setting LD_LIBRARY_PATH

6. How to set LD_LIBRARY_PATH

7. LD_LIBRARY_PATH - how to set?

8. How to set LD_LIBRARY_PATH in perl script

9. set LD_LIBRARY_PATH under single user mode with solaris 8

10. Setting LD_LIBRARY_PATH from matlab

11. How to set LD_LIBRARY_PATH

12. The stupidity of gcc wanting LD_LIBRARY_PATH set

13. Trouble setting LD_LIBRARY_PATH for FastCGI script

14. set LD_LIBRARY_PATH under single user mode with solaris 8

15. LD_LIBRARY_PATH required to set to start apache 2.2