JNI problem on 1.1.7_v1a Linux

1998-12-18 Thread Udo K. Schuermann
The error you were getting is solved by giving the linker (ld) the location of the library that defines the symbol that the loader is looking for. This is accomplished with the '-f name' option, similar to the following: ld -G -f /usr/lib/libuuid.so UUID.o -o libjava-rlt-uuid.so

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.

JNI problem on 1.1.7_v1a Linux

1998-12-17 Thread Denis Riedijk
I am making a viewing program that needs to acces C(++)-code. I have compiled a Native library (libLoad.so) by means of the following commands : g++ -fPIC-c -I[jdk-root]/include -I[jdk-root]/include/genunix Load.cc Load.o ld -shared Load.o -o libLoad.so When I run my java-program the following e