Crash in JNI test application

Øyvind Harboe oyvind.harboe@zylin.com
Mon Jan 19 15:14:00 GMT 2004


My JNI superpowers are rather limited and I haven't tested it against
Sun's JRE, but the application is simple and is a subset of all the
JNI helloworld apps out there.
It appears as if JNI_CreateJavaVM succeeds, but returns garbage the
second time and thus (*env)->FindClass() causes an access violation.
To compile:
\wingcc\bin\gcj -c HelloWorld.java
\wingcc\bin\gcj -c jnitest.c
\wingcc\bin\gcj -o helloworld jnitest.o HelloWorld.o
Øyvind
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorld.java
Type: text/x-java
Size: 30 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040119/7ab65d19/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jnitest.c
Type: text/x-c
Size: 992 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040119/7ab65d19/attachment-0001.bin>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /