Reputation: 9794
I have a problem to compile a project with import of apache.
Here is the error :
And here is my import :
Upvotes: 3
Views: 40426
Reputation: 189
I am using a POM file to handle dependencies. Therefore adding jar files to class path manually was not an option.
After doing a lot of research, found out that the java project was not a maven project. To mavenize project in eclipse the following was done as noted here:
This added maven dependancies automatically to the project and the error "The import org.apache cannot be resolved" went away.
Upvotes: 1
Reputation: 9946
Currently you have included log4j-1.2.17.zip
in your build Path. You need to extract this zip file and get the log4j-1.2.17.jar
and add that to your class path. It will work.
Upvotes: 3