Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9974

Re: JNI lib crash, with a change in a .c file which is not included in the Makefile

From jacob navia <jacob@spamsink.net>
Newsgroups comp.lang.c++
Subject Re: JNI lib crash, with a change in a .c file which is not included in the Makefile
Date 2011-09-09 13:52 +0200
Organization lccwin
Message-ID <j4culf$gp$1@speranza.aioe.org> (permalink)
References <b6c8d5cc-4703-4072-940b-f7436a655c3a@i2g2000yqm.googlegroups.com> <j4cljl$9i0$1@speranza.aioe.org> <6dee28ae-d35f-4ec8-b09b-4d799972e533@u20g2000yqj.googlegroups.com>

Show all headers | View raw


Le 09/09/11 12:41, aqura a écrit :
>>
>> 3) What do you mean by "crashes at load time"? A segmentation fault
>>      or just an error message?
>>
>>      If it is an error message it is probably 100% a compiler version
>> issue. Restore your old compiler and recompile.
>
> Hello Jacob,
>
> Thanks for replying.
>
> we are getting
>
> ERROR com.xx.xxx.xxxx - Unable to load JNI BBBController
> Library java.lang.UnsatisfiedLinkError: /opt/XXXXX/lib/libjnixxx.so:
> Can't load IA 32-bit .so on a IA 32-bit platform at
>
> it is an Error message, which causes application running on TOMCAT to
> stop.


(1)
For System.loadLibrary() use the short name only, i.e. no path prefix
or dll extension, and make sure the file is in java.library.path or
your search PATH. For example:

System.loadLibrary("sampleDLL2");

For System.load(), specify the full path and filename. For example:
System.load("C:/sampleDLL2.dll");

Did you check those things?

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

JNI lib crash, with a change in a .c file which is not included in the Makefile aqura <chandra.vikas21@gmail.com> - 2011-09-09 01:44 -0700
  Re: JNI lib crash, with a change in a .c file which is not included in the Makefile jacob navia <jacob@spamsink.net> - 2011-09-09 11:17 +0200
    Re: JNI lib crash, with a change in a .c file which is not included in the Makefile aqura <chandra.vikas21@gmail.com> - 2011-09-09 03:41 -0700
      Re: JNI lib crash, with a change in a .c file which is not included in the Makefile jacob navia <jacob@spamsink.net> - 2011-09-09 13:52 +0200
        Re: JNI lib crash, with a change in a .c file which is not included in the Makefile aqura <chandra.vikas21@gmail.com> - 2011-09-09 05:50 -0700
  Re: JNI lib crash, with a change in a .c file which is not included in the Makefile Edek <edek.pienkowski@gmail.com> - 2011-09-09 16:05 +0200
    Re: JNI lib crash, with a change in a .c file which is not included in the Makefile jacob navia <jacob@spamsink.net> - 2011-09-09 16:22 +0200
  Re: JNI lib crash, with a change in a .c file which is not included in the Makefile Victor Bazarov <v.bazarov@comcast.invalid> - 2011-09-09 10:39 -0400

csiph-web