Before library is loaded classpath tries to load it from multiple
paths. We shouldn't print eny errors if some of them fail.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jni.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/vm/jni.c b/vm/jni.c
index 8c80afe..9af45cb 100644
--- a/vm/jni.c
+++ b/vm/jni.c
@@ -114,10 +114,8 @@ int vm_jni_load_object(const char *name)
        void *handle;
 
        handle = dlopen(name, RTLD_NOW);
-       if (!handle) {
-               fprintf(stderr, "%s: %s\n", __func__, dlerror());
+       if (!handle)
                return -1;
-       }
 
        if (vm_jni_add_object_handle(handle)) {
                dlclose(handle);
-- 
1.6.0.6


------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to