Cannot import twitter4j classes in Eclipse

╄→尐↘猪︶ㄣ 提交于 2019-12-11 02:49:12

问题


I added twitter4j 3.0.3, into an Eclipse project but it does not import any classes from the jar. I copied in some code samples from the twitter4j jar files but eclipse can't find any of the classes in those files - e.g. Twitter, ConfigurationBuilder, TwitterFactory etc... I've added twitter4j-core-3.0.3-sources.jar to my build path. But Eclipse doesn't suggest to import any classes in these files. Is there anything I'm missing?


回答1:


You need to add the twitter4j-core-3.0.3.jar JAR to your build path, it can be found under the lib directory of the download.

The twitter4j-core-3.0.3-sources.jar JAR only contains source code.



来源:https://stackoverflow.com/questions/17338558/cannot-import-twitter4j-classes-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!