Re: JNI problem

2001-01-09 Thread Paul Mclachlan
At 1:20 01 Jan 2001 +0530, Dushyanth Harinath wrote: > Iam trying to use a existing c library and build a java based interface for > it.I have written a java program for this and created the corresponding > header file and i have also written a c file to execute the native methods. > while compi

Re: JNI problem - unresolved symbols at RUN TIME

1999-11-22 Thread Jacob Nikom
Thank you Nathan, You were right. I thought if you use C++ files the linker picks up correct libraries automatically - not yet. Anyway, your answer reminds me how great our listserver is. Thank you again, Jacob Nikom Nathan Meyers wrote: > > On Fri, Nov 19, 1999 at 06:44:48PM -0500, Jacob

Re: JNI problem - unresolved symbols at RUN TIME

1999-11-20 Thread Nathan Meyers
On Fri, Nov 19, 1999 at 06:44:48PM -0500, Jacob Nikom wrote: > I am writing JNI application called MainPanel using Java, C++ and > a bit of C. It compiles and links without problem, but when I run > it, it crushes with the message... My guess is that you linked your shared library using gcc ins

Re: jni problem

1999-03-29 Thread Jeff Galyan
Wes Biggs wrote: > > optima wrote: > > > cc -G NativeHello.c NativeHelloImp.c -o libHello.so > > ,I encount a problum > > "cc: unrecognized option `-G' > > /usr/lib/crt1.o(.text+0x36): undefined reference to `main'" The problem is that there is no "-G" option to gcc. If you want to build

Re: jni problem

1999-03-28 Thread Wes Biggs
optima wrote: > cc -G NativeHello.c NativeHelloImp.c -o libHello.so > ,I encount a problum > "cc: unrecognized option `-G' > /usr/lib/crt1.o(.text+0x36): undefined reference to `main'" > before I do this ,I had copy the include file of java/include into > /usr/include ,and I copy the *.h in

Re: JNI problem on 1.1.7_v1a Linux

1998-12-17 Thread Carlos Cassino
Hi Denis. You should build your library using g++ instead of ld. The reason is that g++ links additional object files that are essencial for a library to work well (namely, crtbegin.o, crtend.o, crti.o, and crtn.o). Try: g++ -fPIC -I[jdk-root]/include -I[jdk-root]/include/genunix Load.cc Load.

Re: JNI problem

1998-05-11 Thread Robert Lynch
Mark Fardal wrote: > > > What happens if you use the debug version of the java interpreter (java_g)? > > > > Steve > > > > The result is the same as was reported with 1.1.5, it reads a single string > and returns fine. > > weka:native[ 996 ] java_g Prompt > Type a line: hi there > A diagnostic

Re: JNI problem

1998-05-11 Thread Mark Fardal
> What happens if you use the debug version of the java interpreter (java_g)? > > Steve > The result is the same as was reported with 1.1.5, it reads a single string and returns fine. weka:native[ 996 ] java_g Prompt Type a line: hi there A diagnostic message... User typed: hi This is cor

Re: JNI problem

1998-05-10 Thread Robert Lynch
"Works" on Steve Byrne's jdk1.1.5v7 (except seems to pick up the string only to a space, not end of line...): [user@ravel native]$ java Prompt Type a line: Hi there User typed: Hi [user@ravel native]$ java Prompt Type a line: Hithere User typed: Hithere Hope it helps. Bob L. -- Robert Lynch-B