无法在Eclipse中导入twitter4j类 [英] Cannot import twitter4j classes in Eclipse
问题描述
我将twitter4j 3.0.3添加到Eclipse项目中,但不会从jar导入任何类。我从twitter4j jar文件中复制了一些代码示例,但eclipse找不到这些文件中的任何类。 Twitter
, ConfigurationBuilder
, TwitterFactory
etc ...我' ve将我添加到我的构建路径中的 twitter4j-core-3.0.3-sources.jar
但Eclipse并不建议在这些文件中导入任何类。有没有什么我错过的?
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?
推荐答案
你需要添加 twitter4j-core-3.0。 3.jar
JAR到您的构建路径,可以在下载的 lib
目录下找到。
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.
twitter4j-core-3.0.3-sources.jar
JAR只包含源代码。
The twitter4j-core-3.0.3-sources.jar
JAR only contains source code.
这篇关于无法在Eclipse中导入twitter4j类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!