www.digitalmars.com         C & C++   DMDScript  

c++ - jni - hs_err_pid832.log

I downloaded digital mars a few weeks ago. I could eventually compile DLLs to
work with java native interface JNI, but they would either crash my jvm or throw
an exception. I attached the exception log file. The code is very simple, I
declared a method that will be called from my java app.

#include <jni.h>
#include "HelloWorld.h"
#include <stdio.h>
JNIEXPORT void JNICALL 
Java_HelloWorld_displayHelloWorld(JNIEnv *env, jobject obj)
{
printf("hello");
return;
}



begin 0644 hs_err_pid832.log

M;B!N871I=F4 8V]D92!O=71S:61E('1H92!632X-"E5N97AP96-T960 4VEG
M;F%L(#H

M+ET-"DQI8G)A<GD]*$XO02D-" T*3D]413H 5V4 87)E('5N86)L92!T;R!L
M;V-A=&4 =&AE(&9U;F-T:6]N(&YA;64 <WEM8F]L(&9O<B!T:&4 97)R;W(-
M"B` ("` (&IU<W0 ;V-C=7)R960N(%!L96%S92!R969E<B!T;R!R96QE87-E


M;&QO5V]R;&0N9&ES<&QA>4AE;&QO5V]R;&0H3F%T:79E($UE=&AO9"D-" EA



M-C`P,"`)0SI<5TE.1$]74UQ3>7-T96TS,EQN=&1L;"YD;&P-"C!X-S=%-C`P











































M<'-E9"!4:6UE(#T ,`T*(PT*(R!4:&4 97AC97!T:6]N(&%B;W9E('=A<R!D
M971E8W1E9"!I;B!N871I=F4 8V]D92!O=71S:61E('1H92!630T*(PT*(R!*
M879A(%9-.B!*879A($AO=%-P;W0H5$TI($-L:65N="!632`H,2XT+C(M8F5T
682UB,3D ;6EX960 ;6]D92D-"B,-"DTI
`
end
Jun 04 2003