Ask Your Question

Revision history [back]

java.lang.UnsatisfiedLinkError: /tmp/libopencv_java2471324714941408048343.dylib: /tmp/libopencv_java2471324714941408048343.dylib

shekhar@KT-STL-SHEKHAR:~/Desktop/OpenCV/ImageMatcher$ sh start.sh Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/libopencv_java2471324714941408048343.dylib which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.UnsatisfiedLinkError: /tmp/libopencv_java2471324714941408048343.dylib: /tmp/libopencv_java2471324714941408048343.dylib: invalid ELF header (Possible cause: endianness mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at com.swansonb.imagematching.utils.NativeUtils.loadLibraryFromJar(NativeUtils.java:86) at com.swansonb.imagematching.ImageMatcherApplication.loadLibrary(ImageMatcherApplication.java:20) at com.swansonb.imagematching.ImageMatcherApplication.main(ImageMatcherApplication.java:15) ... 6 more

click to hide/show revision 2
retagged

updated 2019-03-04 01:48:38 -0600

berak gravatar image

java.lang.UnsatisfiedLinkError: /tmp/libopencv_java2471324714941408048343.dylib: /tmp/libopencv_java2471324714941408048343.dylib

shekhar@KT-STL-SHEKHAR:~/Desktop/OpenCV/ImageMatcher$ sh start.sh Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/libopencv_java2471324714941408048343.dylib which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.UnsatisfiedLinkError: /tmp/libopencv_java2471324714941408048343.dylib: /tmp/libopencv_java2471324714941408048343.dylib: invalid ELF header (Possible cause: endianness mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at com.swansonb.imagematching.utils.NativeUtils.loadLibraryFromJar(NativeUtils.java:86) at com.swansonb.imagematching.ImageMatcherApplication.loadLibrary(ImageMatcherApplication.java:20) at com.swansonb.imagematching.ImageMatcherApplication.main(ImageMatcherApplication.java:15) ... 6 more