Thanks for finishing this! I see you still had lots of work to do, sorry about that.
I just updated to the latest version and it crashes at startup. I think it's because of the missing JNICALL in the typedef of the create VM function. At least the VC crash handler mentions an invalid calling convention, and indeed, when the typedef looks like this:
typedef jint (JNICALL *JNICreateJavaVMFunc)(JavaVM **, void **, void *);
it's OK again.
Could please you take a look at this again?
@@ -1311,11 +1390,82 @@
Run_runJavaFromRuntimeLib(LPCTSTR runtimeLib, BOOL *searchForJava)
- if (Run_isFile(runtimeLib))
+ HMODULE hRuntimeLib
+ = Run_isFile(runtimeLib) ? LoadLibrary(runtimeLib) : NULL;
+ DWORD error;
+ if (hRuntimeLib)
- /* TODO Auto-generated method stub */
+ typedef jint (*JNICreateJavaVMFunc)(JavaVM **, void **, void *);