Reproduced in: http://blog.csdn.net/booknut/article/details/3947254
In the introduction of the Tomcat source project provided by the user
The project cannot is build until build path errors are resolved
Unbound classpath variable: "A_tomcat6-depend/ant1.7/ant.jar" in Project Tomcat6
It took me a morning to realize that the error was in the ". Classpath" file of the project.
The contents of the modified document are:
<?xml version= "1.0" encoding= "UTF-8"?>
<classpath>
<classpathentry kind= "src" path= "src"/>
<classpathentry kind= "Con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind= "var" path= "A_tomcat6-depend/ant1.7/ant.jar"/>
<classpathentry kind= "var" path= "A_tomcat6-depend/puretls-0.95/puretls-0.95.jar"/>
<classpathentry kind= "var" path= "A_tomcat6-depend/commons/common-logging1.1.1/commons-logging-1.1.1.jar"/>
<classpathentry kind= "var" path= "A_tomcat6-depend/jaxrpc1.1/jaxrpc.jar"/>
<classpathentry kind= "var" path= "A_tomcat6-depend/jdt3.3/org.eclipse.jdt.core_3.3.0.v_771.jar"/>
<classpathentry kind= "var" path= "A_tomcat6-depend/wsdl4j-1.5.1/wsdl4j-1.5.1.jar"/>
<classpathentry kind= "Output" path= "Classes"/>
</classpath>
The "A_tomcat6-depend" folder does not exist in the discovery directory, and the actual directory is "Tomcat6/lib/ant1.7/ant.jar". The setting was changed to "Lib/ant1.7/ant.jar" and the same error was reported. So naturally interested in the way the ". Classpath" was defined, we finally found an article about "Environment configuration under Eclipse" written by a master.
Originally <classpathentry kind= "var" path= "A_tomcat6-depend/ant1.7/ant.jar"/> This is defined by using Eclipse's environment variables, in other words A_ Tomcat6-depend should be an environment variable (make sense!).
So Window->refernces->java->build Path->classpath Variables
Defines a name of A_tomcat6-depend
Then,done.
The solution to this problem is entirely due to the use of the expert to provide information, here provides the blog link for passing and interested coder reference:
Http://www.blogjava.net/henry1451/articles/205891.html