java.lang.ExceptionInInitializerError in javacv

2019-08-29 13:07发布

问题:

I am using javacv library for video recording http://code.google.com/p/javacv/ in my project i need to use opencv_highui.cvLoadImage function but on this line i am getting error like

11-20 14:58:38.697: D/dalvikvm(7587): No JNI_OnLoad found in /data/app-lib/com.javacv.recorder-2/libopencv_highgui.so 0x42474478, skipping init 11-20 14:58:38.697: W/dalvikvm(7587): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/googlecode/javacv/cpp/opencv_highgui;

i am able to use other opencv_core functions

can you please suggest me some solution

Thanks

回答1:

I had the same problem and solved it adding:

import static com.googlecode.javacv.cpp.opencv_highgui.*;

I don't know why but Eclipse didn't do it automatically.