Ask Your Question

NoClassDefFoundError trying to run my own code

asked 2012-07-18 11:47:00 -0500

Vlad gravatar image

Hey guys, i've migrated my project to a new computer, and it stopped working. I get NoClassDefFoundError: org.opencv.objdetect.CascadeClassifier when trying to run it.

I'm using eclipse indigo, on win7, trying to run on andorid 2.3.3. everything worked well before!

i have the opencv2.4.2.jar referenced in my project, (no _src dirs) and i can see the CascadeClassifier.class there.. i don't know what's wrong..

any ideas?

edit retag flag offensive close merge delete


Have you references the 'OpenCV Library - 2.4.2' library project in your app project as suggested in the tutorials ???(

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2012-07-19 00:32:10 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-22 11:22:30 -0500

NoClassDefFoundError is a typical Java error. The NoClassDefFoundError is given when there is a class file that your code depends on and it is present at compile time but not found at runtime. Do the example codes from OpenCV work?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-07-18 11:47:00 -0500

Seen: 524 times

Last updated: Jan 22 '15