diff options
| -rw-r--r-- | runtime/runtime.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index abd2553e34..07e2ec09ca 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -973,10 +973,9 @@ void Runtime::InitNativeMethods() { // Most JNI libraries can just use System.loadLibrary, but libcore can't because it's // the library that implements System.loadLibrary! { - std::string mapped_name(StringPrintf(OS_SHARED_LIB_FORMAT_STR, "javacore")); std::string reason; - if (!java_vm_->LoadNativeLibrary(env, mapped_name, nullptr, &reason)) { - LOG(FATAL) << "LoadNativeLibrary failed for \"" << mapped_name << "\": " << reason; + if (!java_vm_->LoadNativeLibrary(env, "libjavacore.so", nullptr, &reason)) { + LOG(FATAL) << "LoadNativeLibrary failed for \"libjavacore.so\": " << reason; } } |