Java Eclipse:无法解析导入 org.apache

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24405550/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 12:01:38  来源:igfitidea点击:

Eclipse : The import org.apache cannot be resolved

javaeclipseapache

提问by wawanopoulos

I have a problem to compile a project with import of apache.

我在编译导入 apache 的项目时遇到问题。

Here is the error :

这是错误:

enter image description here

在此处输入图片说明

And here is my import :

这是我的导入:

enter image description here

在此处输入图片说明

回答by Sanjeev

Currently you have included log4j-1.2.17.zipin your build Path. You need to extract this zip file and get the log4j-1.2.17.jarand add that to your class path. It will work.

目前您已包含log4j-1.2.17.zip在您的构建路径中。您需要解压缩此 zip 文件并获取log4j-1.2.17.jar并将其添加到您的类路径中。它会起作用。