8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM

Reviewed-by: alanb, ihse
This commit is contained in:
Priyanka Mangal 2018-11-30 13:42:49 -08:00 committed by Henry Jen
parent 3995ae1270
commit 7c6cb8cd7e
6 changed files with 234 additions and 1 deletions

View file

@ -508,7 +508,7 @@ GetJREPath(char *path, jint pathsize, jboolean speculative)
return JNI_FALSE;
}
const char lastPathComponent[] = "/lib/jli/libjli.dylib";
const char lastPathComponent[] = "/lib/libjli.dylib";
size_t sizeOfLastPathComponent = sizeof(lastPathComponent) - 1;
if (pathLen < sizeOfLastPathComponent) {
return JNI_FALSE;