JNI in sparc solairs 9 64 bits

I have a problem using JNI on Solaris 9.

I have a library .so build in C, i compile using Forte 8 with -xarch=v9 option, for generate 64 bits code.

I Have installed Java 1.4 for 64 bits.

When i run my proyect, this send a exception: java.lang.UnsatisfiedLinkError

But the stranger is that the program can found the library.

The complete exception is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/users/sitdesa/BridgeCanales/lib/libjtux.so: ld.so.1: java: fatal: /home/users/sitdesa/BridgeCanales/lib/libjtux.so: open failed: No such file or directory

Any idea?

Thanx!

[642 byte] By [oscuroa] at [2007-11-27 5:15:28]
# 1

First, run 'nm' command to be sure that the library was compiled for 64 bits.

Second, how are you loading the library? If you are using System.loadLibrary, then change and try with System.load, but in this case you must use the entire path of the library. If you are using System.load try the opposite, just be careful when to use the full path or just the name.

Also make sure that you are loading all the required libraries.

regards,

Gonzalo

gonzalo.huertaa at 2007-7-12 10:37:44 > top of Java-index,Java HotSpot Virtual Machine,Specifications...