0

I downloaded twitter sample application in AndroidTwitterSample repository and imported my eclipse. I am trying to run that sample application and i got the error: java.lang.NoClassDefFoundError in logcat.

Arun Kumar
  • 6,534
  • 13
  • 40
  • 67
rams
  • 1,558
  • 7
  • 25
  • 48

2 Answers2

1

The error is based on jar file missing.you must place jar files rite place.

Create a folder named libs inside the root directory of your project and put twitter4j jar inside.

Then include new jar via Project Properties -> Java Build Path -> Libraries -> Add Jars.

Remove any old reference to twitter4j jars.

Clean and launch.

I hope this will helpful to you.

Ami
  • 4,241
  • 6
  • 41
  • 75
  • in my project already lib folder is available and also inside twitter jar file avaiable – rams Oct 08 '12 at 09:29
  • @user1717339 Have you tried out my answer in your question's comment. – Praveenkumar Oct 08 '12 at 09:32
  • 1
    @user1717339 yes already you are used lib folder.but that lib folder is not associated to your project or path mismatching.Then only you got this error.https://developer.android.com/tools/extras/support-library.html#SettingUp,and http://android-developers.blogspot.in/2011/10/changes-to-library-projects-in-android.html.Refer this link for the library folder handled in Android app. – Ami Oct 08 '12 at 12:10
0

see my post- No class defination found error even if there is no issues & let me know if this not working in your side.

Community
  • 1
  • 1
Akhilesh Mani
  • 3,502
  • 5
  • 28
  • 59