简体   繁体   English

我直接在src文件夹中添加了一个库,Eclipse似乎可以正确编译,但是找不到类文件?

[英]I added a library directly to my src folder, Eclipse seems to be compiling properly, but can't find the class file?

I added the boilerpipe library directly to my src folder. 我将样板库直接添加到我的src文件夹中。 Everything seems to be compiling when I run, but I get an error telling me that one of the classes in the boilerpipe library could not be resolved. 运行时,所有内容似乎都在编译,但是我收到一条错误消息,告诉我样板库中的某个类无法解析。

The ArticleExtractor class is what I'm trying to use, but Eclipse won't let me even though its class file is in the bin folder. 我正在尝试使用ArticleExtractor类,但是即使Eclipse的类文件位于bin文件夹中,Eclipse也不会让我使用。

I'd post a picture, but I don't have the reputation. 我会发布图片,但是我没有声誉。 Boilerpipe itself is a folder containing several other folders, containing the .java files in the source folder, and .class files in the bin folder after I've tried to run. 在尝试运行之后,Boilerpipe本身是一个包含其他文件夹的文件夹,其中包含源文件夹中的.java文件和bin文件夹中的.class文件。 I couldn't find anything on this here so I though I'd ask. 我在这里找不到任何东西,所以尽管我会问。

没有看到代码,我会说您要么没有将其添加到构建路径中,要么没有将代码导入到类中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM