--- old/src/share/vm/prims/jvmtiExport.cpp 2016-10-24 19:13:35.453523545 +0900 +++ new/src/share/vm/prims/jvmtiExport.cpp 2016-10-24 19:13:35.378523284 +0900 @@ -2382,6 +2382,7 @@ if (!agent_lib->is_static_lib()) { os::dll_unload(library); } + st->print_cr("Could not find entry point in %s\n", agent_lib->name()); delete agent_lib; } else { // Invoke the Agent_OnAttach function @@ -2412,6 +2413,11 @@ result = JNI_OK; } } + + if ((result != JNI_OK) && (*ebuf != '0')) { + st->print_cr("%s\n", ebuf); + } + return result; }