Re: mingw32 and jdk/jni
"Paul Edwards" <[email protected]> Tue, 22 Sep 2020 15:55:52 +1000
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <5B606DB32DF2460793C6BB390FDE999C@DESKTOP0OKG1VA> |
Hi Rastos. Thanks for your reply. > Do you #include "jni.h" in mary.c ? Yes, I have an include of <jni.h> > What I've seen used in some projects is using dynamic > loading with > typedef int (*t_JNI_CreateJavaVM) (JavaVM**, void**, JavaVMInitArgs*); > ... > t_JNI_CreateJavaVM *p=(t_JNI_CreateJavaVM) > GetProcAddress(LoadLibrary(jvm_dll_path),"JNI_CreateJavaVM"); Thanks! That worked, after doing the equivalent of changing "*p" to "p". Unfortunately it wouldn't allow me to just specify "jvm.dll" and fetch that from the path. So I'll need to construct the location at runtime from a JAVA_HOME environment variable. Better than being totally stuck. :-) BFN. Paul. _______________________________________________ MinGW-Users mailing list [email protected] This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.osdn.me/mailman/listinfo/mingw-users Also: mailto:[email protected]?subject=unsubscribe