I can not run standalone Java app in Ubuntu12.04
I have an standalone app that works perfectly in windows 7. The opencv version is 2.4.8.
When I try to run the app in Ubuntu12.04, I can not use: System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Because the system responses: Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java248 in java.library.path
But I have a correctly installation of openCV. I have it (I use ldconfig -v to verify this): /usr/local/lib: libopencv_ts.so.2.4 -> libopencv_ts.so.2.4.2 libopencv_core.so.2.4 -> libopencv_core.so.2.4.8 libopencv_stitching.so.2.4 -> libopencv_stitching.so.2.4.8 libopencv_imgproc.so.2.4 -> libopencv_imgproc.so.2.4.8 libopencv_flann.so.2.4 -> libopencv_flann.so.2.4.8 libopencv_ocl.so.2.4 -> libopencv_ocl.so.2.4.8 libopencv_gpu.so.2.4 -> libopencv_gpu.so.2.4.8 libopencv_superres.so.2.4 -> libopencv_superres.so.2.4.8 libopencv_videostab.so.2.4 -> libopencv_videostab.so.2.4.8 libopencv_nonfree.so.2.4 -> libopencv_nonfree.so.2.4.8 libopencv_contrib.so.2.4 -> libopencv_contrib.so.2.4.8 libopencv_features2d.so.2.4 -> libopencv_features2d.so.2.4.8 libopencv_ml.so.2.4 -> libopencv_ml.so.2.4.8 libopencv_calib3d.so.2.4 -> libopencv_calib3d.so.2.4.8 libopencv_video.so.2.4 -> libopencv_video.so.2.4.8 libopencv_highgui.so.2.4 -> libopencv_highgui.so.2.4.8 libopencv_objdetect.so.2.4 -> libopencv_objdetect.so.2.4.8 libopencv_photo.so.2.4 -> libopencv_photo.so.2.4.8 libopencv_legacy.so.2.4 -> libopencv_legacy.so.2.4.8
But it is impossible to use System.loadLibrary(Core.NATIVE_LIBRARY_NAME); when the library doesn't have libopencv_java248.so.
I don't know what to do. Thanks in advance.