I'm having a problem getting DLLs compiled with Cygwin to load into Sun
JDK 1.4.1. In the past this has worked, so I hope this is fixable
without too much work.
Here's an example. Take a simple Java Native Interface method like this:
$ cat jniTest.c
void Java_Test_test () { printf ("test\n");
Alan Thompson wrote:
Check out this solution from the mailing list archives:
http://sources.redhat.com/ml/cygwin/2003-06/msg00357.html
Thanks, but I'm not using the JNI Invocation API. Also, the suggestions
in that
web page refer to using -mno-cygwin. In the past it was actually
possible to
Alan Thompson write:
OK - now you have me confused
If you're not loading DLL's into Java for use with JNI, what are you doing?
Also, note that those techniques work for both plain JNI (i.e. java calls into C/C++)
as well as the invocation API (where a C/C++ program creates an JVM).
Again, "th
Alan Thompson wrote:
Ok, if you check out this example: http://www.whitecaps.net/jni/expr.jar
you'll see that there it doesn't use -mno-cygwin. Here is the g++ task from the ant build script:
Interesting -- if I add the -Xmx256m flag to `java', my test case works
too. -Xms64 doesn't seem t
Interesting -- if I add the -Xmx256m flag to `java', my test case
works too.
The cause is the fixed `cygwin_shared_address' (set to 0xa00 in
winsup/cygwin/shared_info.h). What happens with Sun JVM loads of
Cygwin-dependent DLLs is that chunk of virtual memory gets claimed by
the JVM, and
Would it be possible to add a -D_WIN32 to the libjava/libltdl Makefile
for Cygwin? Then the LoadLibrary support will get compiled-in, and
dynamic libraries can be loaded into GCJ apps. If this is done, then a
__CYGWIN__ conditional is needed in ltdl.c in order to first normalize
the path for
Tom Tromey wrote:
"Marcus" == Marcus G Daniels <[EMAIL PROTECTED]> writes:
Marcus> Would it be possible to add a -D_WIN32 to the libjava/libltdl
Marcus> Makefile for Cygwin?
It looks like it would be a bit more in line with existing code to
just add it to lib
Charles Wilson wrote:
Or rebuild libjava so that it uses the system-installed version of
cygltdl-3.dll and not a self-compiled one.
It looks to me like everything would work (assuming dlopen works),
provided the libjava linked against the Cygwin libltdl instead of the
one it subsumes from itsel
8 matches
Mail list logo