The import org.apache.tools cannot be resolved

The import org.apache.tools cannot be resolved

Post by John Smit » Thu, 01 Jun 2006 22:48:22


I am an Eclipse newbie who are trying to learn how to write tasks from
the following tutorial:
http://www.yqcomputer.com/

example code from the tutorial:
import org.apache.tools.ant.Project;

public class HelloWorld {

private Project project;

public void setProject(Project proj) {
project = proj;
}

public void execute() {
String message = project.getProperty("ant.project.name");
project.log("Here is project '" + message + "'.",
Project.MSG_INFO);
}
}

I could not find the org.apache.tools.ant.jar package from the
http://www.yqcomputer.com/

How do I get around this "The import org.apache.tools cannot be
resolved" error?
 
 
 

The import org.apache.tools cannot be resolved

Post by Oliver Won » Fri, 02 Jun 2006 00:45:03


[...]

http://www.yqcomputer.com/ #installing
<quote>
ant
+--- bin // contains launcher scripts
|
+--- lib // contains Ant jars plus necessary dependencies
</quote>


Did you check the ant/lib directory?

- Oliver