mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
Reviewed-by: alanb, ihse
This commit is contained in:
parent
3995ae1270
commit
7c6cb8cd7e
6 changed files with 234 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue