2

I m working on a project which is working great on a machine but on another machine having OS WINDOW 8 when I run same project I got Exception

java.lang.NoClassDefFoundError: org.apache.commons.lang.StringEscapeUtils

It is related to runtime class path but I dont know from where I need to set that. External jar is used here and there is no error in any of file.

Please Suggest

5
  • Possible duplicate stackoverflow.com/questions/1702852/… Commented May 31, 2013 at 11:20
  • Maybe your external library is not exported to your apk, I suggest you to see this:stackoverflow.com/questions/16841050/could-not-find-class/… Commented May 31, 2013 at 11:24
  • @Gustek I searched many question. But no answer works for me. So If you know how to rectift then please go forward. Commented May 31, 2013 at 11:27
  • Go back to your old machine and check CLASSPATH, make sure it's set the same on your new machine. Commented May 31, 2013 at 11:31
  • @VarunVishnoi: I have done that you said. Thanks! Commented May 31, 2013 at 17:46

2 Answers 2

2

Since the last version of the ADT eclipse plugin (mine is 22.0.0.v201305140200--675,183), there are problems with external libraries and a common mistake remembers: java.lang.NoClassDefFoundError. To solve this problem you can follow the link in which I give a solution: Could not find class

Sign up to request clarification or add additional context in comments.

Comments

1

This error because of your .jar file. Add your jar file in libs folder look at this solution we will solve your problem https://stackoverflow.com/a/12511271/964741

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.