Ask Your Question
0

I can not run standalone Java app in Ubuntu12.04

asked 2014-05-05 06:25:22 -0600

Brattchess gravatar image

updated 2014-05-05 07:55:25 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-16 09:58:52 -0600

rafaoc gravatar image

May be in your project you don't have a local reference for the library path, try to do it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-05 06:25:22 -0600

Seen: 374 times

Last updated: Jul 16 '14