This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj, gdb warnings & jni method signatures


Rutger Ovidius wrote:
> 
> I'm not sure if it is supposed to be doing this (do .exe's normally
> export symbols? -- someone else probably knows more about this than
> me), but by removing the loading of 'self' as a module my app no
> longer has the problem and only looks up symbols in the .dlls I choose
> to loadLibrary().

My memory is a bit hazy, but IIRC, if you link JNI libraries
statically against your executable (instead of dynamically via
a DLL as JNI expects), then you need to export symbols from
within your EXE and load "yourself" as a module to be able
to find methods when the JNI runtime looks for them.

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]