[EMAIL PROTECTED] wrote:
> On Thu, 26 Aug 1999, A Schneider at XCC wrote:
> > I did not understand the specs for JNI in that way!
> > I interpreted them that you may have (and in reality
> > will need!) to recompile your native library to fit
> > to the specific JVM.
>
> From the JNI spec:
>
> Binary compatibility - The primary goal is binary
> compatibility of native method libraries across all
> Java VM implementations on a given platform.
> Programmers should maintain only one version of
> their native method libraries for a given platform.
>
> It doesn't seem that they would refer to it as "binary" compatibility if
> you had to recompile.
Binary compatibility is indeed something you get from using the JNI. the
only thing to worry about is making sure that the entry points from one JNI
implementation line up with others.
I haven't taken the time to do this with sun's vs. japhar's, but they
should be close (the 1.2 methods might be in the wrong place, owing to the
fact that the 1.2 JNI docs don't give enough info.)
Chris