我已经下载了Apache POI,但是当我尝试使用它时,我的代码无法编译

时间:2021-01-22 02:23:50

I've recently download poi-src-3.2-FINAL from poi.apache.org. Now I can't write these:

我最近从poi.apache.org下载了poi-src-3.2-FINAL。现在我不能写这些:

import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hwpf.*;
import org.apache.poi.hwpf.extractor.*;

Now I can't use the classes of HWPFDocument and WordExtractor. I can only

现在我不能使用HWPFDocument和WordExtractor的类。我只能

import org.apache.*;

Did I forget to download any other thing?

我忘了下载任何其他东西吗?

1 个解决方案

#1


"src" usually indicates a package containing only the source code, not the compiled classes. Check to see if there is a "bin" download available for you.

“src”通常表示只包含源代码的包,而不是编译的类。检查是否有可用的“bin”下载。

Update: the binary release is indeed named poi-bin-3.2-FINAL, here is a download link.

更新:二进制版本确实命名为poi-bin-3.2-FINAL,这里是一个下载链接。

#1


"src" usually indicates a package containing only the source code, not the compiled classes. Check to see if there is a "bin" download available for you.

“src”通常表示只包含源代码的包,而不是编译的类。检查是否有可用的“bin”下载。

Update: the binary release is indeed named poi-bin-3.2-FINAL, here is a download link.

更新:二进制版本确实命名为poi-bin-3.2-FINAL,这里是一个下载链接。