I am making an app that communicates with Twitter to post a tweet. My problem is that when compile my code, I get the error message:
NoClassDefFoundError: tw
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.