Let eclipse automatically import Lib to Tomcat

Source: Internet
Author: User

When we develop a web app with Eclipse, we import many third-party jar packages. There is no problem with code compilation, but when you start the server with eclipse, you find that many classes are missing. It is possible that these third-party jar packages, although in BuildPath, were not automatically copied to Tomcat when the project was deployed. We can modify the. classpath file under the project so that eclipse automatically puts the jar package into the Web-info Lib folder, as follows:

<classpathentry kind= "Con" path= "org.eclipse.jdt.user_library/mylib" > <attributes> <attribute N Ame= "Org.eclipse.jst.component.dependency" value= "/web-inf/lib"/> </attributes> <classpathentry/>

The <attributes> tab section is the configuration that lets eclipse automatically copy, and value is the destination folder.

This article is from the "Bronze Gong" blog, please be sure to keep this source http://jaeger.blog.51cto.com/11064196/1758159

Let eclipse automatically import Lib to Tomcat

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.