I'm using the twitter4j 2.1.11 jar, but Eclipse doesn't seem to be able to find classes within it. I added the jar as a referenced library, but get Twitter cannot be resolved to a type
when trying to use it. I can add imports like import twitter4j.*
but not import twitter4j.Twitter
.
I can tell the class is available as it is present when I open the jar in an archive viewer. How can I get Eclipse to behave?
The problem I was having was that I was importing the wrong archive, specifically the sources archive rather than the one found in /lib of the twitter4j download.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With