LD_LIBRARY_PATH not accessible through java under cygwin for JNI

2003-02-27 Thread gilles bourgeois
hi folks, I am currently using my JNI so/dll library under solaris, linux and cygwin. with solaris and linux, no problem, I bind to it using load(..) since the LD_LIBRARY_PATH is set. BUT, under cygwin/windows, it does not work and I shall tell the absolute path when I load the library. I hav

Re: LD_LIBRARY_PATH not accessible through java under cygwin for JNI

2003-02-27 Thread Randall R Schulz
Ronald, At 04:10 2003-02-27, Ronald Landheer-Cieslak wrote: On Thu, 27 Feb 2003, gilles bourgeois wrote: hi folks, I am currently using my JNI so/dll library under solaris, linux and cygwin. with solaris and linux, no problem, I bind to it using load(..) since the LD_LIBRARY_PATH is set.

Re: LD_LIBRARY_PATH not accessible through java under cygwin for JNI

2003-02-27 Thread Alan Thompson
Gilles - The following should work for you under Cygwin: HelloWorld.c: - #include iostream using namespace std; #include HelloWorld_jni.h JNIEXPORT void JNICALL Java_HelloWorld_sayHello( JNIEnv *env, jclass c ) { cerr Hello

Re: LD_LIBRARY_PATH not accessible through java under cygwin for JNI

2003-02-27 Thread Randall R Schulz
Alan, Thanks for that. Actually, I had an ulterior motive in directing Gilles here--I'm just about to embark on my first attempt at JNI programming and I need to evaluate the suitability of using Cygwin and / or MinGW for producing JNI libraries to use with the Sun JVM and any pointers I can