Re: 32 bit applet on 64 bit Java?
On 11/09/2010 10:29 AM, John Smith wrote:
The crash happens when the JNI library executes memcpy command.
I think the code should be ok because it already works for a long time.
For starters, top-posting is considered bad form in Usenet.
Anyways, "it's always worked before" is not exactly a sign that the code
in question actually works . Although, giving my experience with
debugging C code, a crash here is generally a sign of a more pernicious
latent problem that only happened to manifest itself.
It may be because the applet is 32 bit and the JNI is now 64 bit
compiled. The universal or 32 bit compiled JNI does not load due to
"wrong architecture" error.
What do you mean by "the applet is 32-bit"? Java bytecode is completely
independent of architecture (indeed, that is its point), so the only
things that could be 32-bit or 64-bit is the JVM that you are running or
the native library code being called by said applet.
 Random digression. It's slightly annoying when you are trying to
point out why to not implement something in a certain way, and the
example you come up with on the fly would seem to give the same result.
Even more annoying is when the explanation as to why it happens in this
particular case is a ways beyond the scope of the class.
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth