Eclipse Import Project appears unbound classpath variable error.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.