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