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#0I!;B!U;F5X<&5C=&5D(&5X8V5P=&EO;B!H87, 8F5E;B!D971E8W1E9"!I
M;B!N871I=F4 8V]D92!O=71S:61E('1H92!632X-"E5N97AP96-T960 4VEG
M;F%L(#H 15A#15!424].7T%#0T534U]624],051)3TX *#!X8S`P,#`P,#4I
M(&]C8W5R<F5D(&%T(%!#/3!X035!-3`P-#`-"D9U;F-T:6]N/5M5;FMN;W=N
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(&1O8W5M96YT871I;VX 9F]R('!O<W-I8FQE#0H ("` ("!R96%S;VX 86YD
M('-O;'5T:6]N<RX-" T*#0I#=7)R96YT($IA=F$ =&AR96%D. T*"6%T($AE
M;&QO5V]R;&0N9&ES<&QA>4AE;&QO5V]R;&0H3F%T:79E($UE=&AO9"D-" EA
M="!(96QL;U=O<FQD+FUA:6XH2&5L;&]7;W)L9"YJ879A.C$T*0T*#0I$>6YA
M;6EC(&QI8G)A<FEE<SH-"C!X,#`T,#`P,#` +2`P>#`P-#`V,#`P(`E#.EQ7
M24Y$3U=37'-Y<W1E;3,R7&IA=F$N97AE#0HP>#<W1C4P,#`P("T ,' W-T9&
M-C`P,"`)0SI<5TE.1$]74UQ3>7-T96TS,EQN=&1L;"YD;&P-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