无法运行准备好的项目

时间:2014-09-05 06:12:32

标签: java eclipse apache-storm

我是Java新手, 我导入了一个准备好的项目,当它运行时,我得到了这个

Resource Path Location Type The project was not built since its build
path is incomplete. Cannot find the class file for
storm.trident.state.State. Fix the build path then try building this
project first-stories-twitter-master Unknown Java Problem The type

storm.trident.state.State cannot be resolved. It is indirectly
referenced from required .class files RecentTweetsDB.java
/first-stories-twitter-master/src/main/java/trident/state
我可以在这方面找到帮助吗? error

1 个答案:

答案 0 :(得分:0)

看起来您需要将jar添加到项目的构建路径中,右键单击主项目,单击Build Path>配置构建路径后,您将看到构建路径对话框,从此处单击“库”选项卡并“添加JAR”'或者'添加外部JAR'如果.jar文件在项目之外。

我猜你需要引用Storm.jar文件,因为看起来编译器找不到storm.trident.state.State类。在解决构建路径问题之前,应用程序才会运行!

祝你好运!