Réf. : Re: Java and JNI in Linux
BRUGAT Didier <[email protected]>
| Newsgroups | gmane.comp.java.linux.general |
|---|---|
| Message-ID | <OFC5622C9E.707F2E8C-ONC1256E5B.00598571-C1256E5B.0059BB57@hq.ad.ep.corp.local> |
Thank for your response, but i found the solution : all is ok with the jdk1.4.2_04 instead of jdk1.4.1 !!! Dirk Weigenand <[email protected]> 18/03/2004 15:32 Pour : BRUGAT Didier <[email protected]> cc : Objet : Re: Java and JNI in Linux Hi, BRUGAT Didier <[email protected]> writes: > Hello Linux world ! > I have a problem when i try to load a shared library in my java program. > My config is : > Linux 64 bits > jdk1.4.1 > compilers 64 bits : ecc (C language) and efc (Fortran) > When i build an application with this dynamic library, all is OK. > But when i launch my java application whith this same library, i get this error message : > Exception in thread "main" java.lang.UnsatisfiedLinkError: libTEST.so: libTEST.so: cannot open shared object file: No such file or directory > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:832) > at TEST.<clinit>(TEST.java:3) > Could you help me ? > Thanks. Do you have your LD_LIBRARY_PATH point to the location of your library? You can also add the directory to /etc/ld.so.conf. -- _____________________________________________________________________ Dirk Weigenand mailto:[email protected] SMB GmbH http://www.smb-tec.com