reizals
reizals

Reputation: 1335

java junit and the exception java.lang.NoClassDefFoundError

I'm really confused. I have a project "PROJ" and test project "PROJ.TEST"

PROJ is using classes from external.jar In PROJ.TEST I write a test that is testing class from PROJ but this class is using class from external.jar.

And here is the problem. I get an error: java.lang.NoClassDefFoundError Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

I have searched all the Internet to find the answer but couldn't find it. Even this great post http://blog.js-development.com/2010/06/android-instrumentation-test.html doesn't help me. I tried many combinations with Java Build Path and nothing :(

Regards

Upvotes: 0

Views: 782

Answers (1)

Diego Torres Milano
Diego Torres Milano

Reputation: 69189

The post Android Testing: External libraries probably contains the answer to your question and a step-by-step example.

Upvotes: 1

Related Questions