Peenoo / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

NoClassDefFoundError: in Android #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create android project, reference openCV 2.3.1 libraries
2.add the javacpp and javacv JAR files as per the instructions provided.
3.

What is the expected output? What do you see instead?
trying to do this sample but for android:
http://ganeshtiwaridotcomdotnp.blogspot.com/2011/12/javacv-image-thresholding-hs
v-color.html
but i get this error Caused by: java.lang.NoClassDefFoundError: 
com.googlecode.javacv.cpp.opencv_highgui
What version of the product are you using? On what operating system?
windows vista, on eclipse, both the emulator and galaxy tab device do not work

Please provide any additional information below.
i have followed the instructions on referencing JAR files but it seems i still 
cannot access the classes. your help is greatly appreciated

Original issue reported on code.google.com by julietki...@gmail.com on 29 Apr 2012 at 8:35

GoogleCodeExporter commented 9 years ago
As instructed in the README.txt file, have you also copied the native libraries 
of JavaCV from javacv-android-arm.jar?

Original comment by samuel.a...@gmail.com on 29 Apr 2012 at 9:22

GoogleCodeExporter commented 9 years ago
am assuming the javacv-android-arm.jar is the one under 
javacv-bin-20120329.zip, therefore all i did, was extract all the files and 
save them under libs/armeabi as instructed

Original comment by julietki...@gmail.com on 29 Apr 2012 at 9:25

GoogleCodeExporter commented 9 years ago
So, what files do you have under libs/armeabi right now?

Original comment by samuel.a...@gmail.com on 29 Apr 2012 at 9:29

GoogleCodeExporter commented 9 years ago
javacpp.jar
javacv.jar
javacv-android-arm.jar
javacv-linux-x86.jar
javacv-linux-x86_64.jar
javacv-macosx-x86_64.jar
javacv-windows-x86.jar
javacv-windows-x86_64.jar
libopencv_calib3d.so
libopencv_contrib.so
libopencv_core.so
libopencv_features2d.so
libopencv_flann.so
libopencv_highgui.so
libopencv_imgproc.so
libopencv_legacy.so
libopencv_ml.so
libopencv_objdetect.so
libopencv_video.so

and i have also done the project-properities-libraries-add JARS- and added the 
javacv.jar and javacpp.jar

Original comment by julietki...@gmail.com on 29 Apr 2012 at 9:35

GoogleCodeExporter commented 9 years ago
You're missing the libjni*.so files from the javacv-android-arm.jar archive. 
Please try to extract those as well...

Original comment by samuel.a...@gmail.com on 29 Apr 2012 at 9:38

GoogleCodeExporter commented 9 years ago
am sorry if this sounds lame but where do i get javacv-android-arm.jar archive? 
it is not under the http://code.google.com/p/javacv/downloads/list....and the 
one i have from
javacv-bin-20120329.zip (do not know if this is the right one) cannot be 
extracted further once iv extracted the javacv-bin-20120329.zip into these 
files:
javacpp.jar
javacv.jar
javacv-android-arm.jar
javacv-linux-x86.jar
javacv-linux-x86_64.jar
javacv-macosx-x86_64.jar
javacv-windows-x86.jar
javacv-windows-x86_64.jar

this javacv-android-arm.jar file cannot be extracted further

Original comment by julietki...@gmail.com on 29 Apr 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Then get something that can! Under Windows where Microsoft only seems to be 
able to bundle lame tools with their OS, we can use 7-Zip http://www.7-zip.org/

Original comment by samuel.a...@gmail.com on 29 Apr 2012 at 9:52

GoogleCodeExporter commented 9 years ago
I am guessing you were able to get it running, but please ask your questions on 
the mailing list if possible if you still have some problems, thank you

Original comment by samuel.a...@gmail.com on 12 May 2012 at 11:53