Hi all - I have been doing some JNI stuff to integrate our legacy software, and I
have had very good luck following the examples at
http://www.inonit.com/cygwin/jni/helloWorld/ . The only twist is that I've been
using g++ instead of gcc, which simplifies the non-java part.
Here's a
Following up from recent emails about Java/JNI using Sun's JDK I'd
thought I'd share my experiences.
Up and until Cygwin-1.3.13 the test script below would compile and run
as expected. The test produces a simple Java Native Interface (JNI)
program which calls C code from a Java program using
hello
I wonder if it is possible to use JNI upon a DLL .i.e a shared libray like
.so file generated with gcc, without the mno-cygwin option.
(my lib uses IPC SYSTEM V, that is why I rely on the cygwin and cygipc
libraries)
I am mot a newbie with java/jni or gcc, but mixing all of them seems to
Gilles,
I don't believe the ABI (application binary interface) used by the
Microsoft compilers is compatible with that used by GCC and hence the Sun
JVM, being compiled by the Microsoft tools, cannot access GCC-compiled
libraries via JNI.
Randall Schulz
At 06:41 2003-01-17, gilles BOURGEOIS
Gilles,
This may be related to the issue raised in this message:
http://cygwin.com/ml/cygwin/2003-01/msg00965.html.
Igor
On Fri, 17 Jan 2003, Randall R Schulz wrote:
Gilles,
I don't believe the ABI (application binary interface) used by the
Microsoft compilers is compatible with
Igor,
Could you clarify? Is my supposition not actually correct?
That would be nice to know.
Randall Schulz
At 08:15 2003-01-17, Igor Pechtchanski wrote:
Gilles,
This may be related to the issue raised in this message:
http://cygwin.com/ml/cygwin/2003-01/msg00965.html.
Igor
On Fri, 17
Randall,
Jim Kleckner, who posted the message I referred to, was apparently able to
load a gcc-built DLL in the same manner as an MSVC-built one. This seems
to indicate that the ABI is compatible, and the only problem was the
function name mangling. It was mostly a speculation on my part to
Randall is usually 100% right about everything, but here he's actually
not. I haven't done it in a long time, but I've certainly written JNI
libraries with cygwin -- and in fact, used some fairly cygwin specific
features in doing so (my JNI library explicitly used dlopen() to open
another
thanks a lot,
actually, with -Wl,--add-stdcall-alias to the gcc line, all worked fine.
- Original Message -
From: friedman_hill ernest j [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 5:27 PM
Subject: Re: Using cygwin and JAVA/JNI
Randall is usually 100
Yow!
What's the proper way to ward off the curse implied here? I may never be
right again!
Perhaps what's really afoot here is that as a Badger, my near-universal
correctness is trumped by that of someone actually working on the Madison
campus.
At 08:27 2003-01-17, friedman_hill ernest j
10 matches
Mail list logo