Ask Your Question
0

NoClassDefFoundError trying to run my own code

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

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

Comments

Have you references the 'OpenCV Library - 2.4.2' library project in your app project as suggested in the tutorials ???(http://docs.opencv.org/trunk/doc/tutorials/introduction/androidbinarypackage/androidbinarypackage.html#application-development-with-async-initialization)

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

1 answer

Sort by ยป oldest newest most voted
1

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

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

Question Tools

Stats

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

Seen: 711 times

Last updated: Jan 22 '15