From 90fa4c9b69c077e0be4320fea1b02ec4fef669ac Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 7 Sep 2012 19:05:05 -0600 Subject: [PATCH] add JNI_GetCreatedJavaVMs stub Recent versions of IcedTea will not run unless libjvm.so exports this symbol. The quick fix is to provide a stub which just always returns -1 to indicate an error. I'll leave a proper implementation for when we need to support an app that actually uses this function. --- src/jnienv.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/jnienv.cpp b/src/jnienv.cpp index f6eeb8c86f..b9e1ea00a4 100644 --- a/src/jnienv.cpp +++ b/src/jnienv.cpp @@ -3626,6 +3626,13 @@ JNI_GetDefaultJavaVMInitArgs(void*) return 0; } +extern "C" JNIEXPORT jint JNICALL +JNI_GetCreatedJavaVMs(Machine**, jsize, jsize*) +{ + // todo + return -1; +} + extern "C" JNIEXPORT jint JNICALL JNI_CreateJavaVM(Machine** m, Thread** t, void* args) {