Pierre HÊroux wrote:
> I use RedHat 6.1 and JDK1.2.2 RC1
> I have 2 kind of problemes with the JNI.
>
> First I get an exception with the following code.
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Hello
> at Native.main(Native.java:14)
I had the same error on my RedHat 6.1 jdk 1.1.7 v3
You should set LD_LIBRARY_PATH variable matching the path to your library
(lib***.so file).
E.g.: export LD_LIBRARY_PATH=/my/program
> Second, I get a segmentation fault on the JNI_CreateJavaVM call of the
> following code.
>
You should try to compile library with -shared option. After that all
worked on my system.
If not there are some other ways, described in the conference archive. Try
to search it for SIGSEGV.
--
Regards,
Anthony G. Starovojtov,
System Administrator of IMS Department,
Kharkov State Technical University of Radioelectronics,
pr. Lenina,14, room 254, Kharkov, 61726, Ukraine
Phone +380 572 409451 (Work), +380 572 648863 (Home)
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
ICQ: 32572820; Yahoo Messenger ID: starovojtov
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]