User library package management in eclipse

Source: Internet
Author: User

 

1.Sort jar files

2.Set the compiled jar packages as user libraries in eclipse.
Window-> preferences-> JAVA-> build path-> User Libraries

3.Add the Required User Library to the project.

If Tomcat is required during project development, add the project to Tomcat classpath In the Tomcat plug-in; otherwise, classnotfoundexception is reported.

The procedure is Windows> preferences> Tomcat> advanced.

However, when published to tomcat or packaged, the system does not add the jar package in the user library. Therefore, you must set deployment assembly in the project properties,

To add the added user library, select Properties-deployment assembly-Java bulid path entries to import the user Library (Java EE module dependencies earlier than 3.6.

After the above settings, you can manage jar files well, and you do not need to copy the jar files again in the project, saving space and ease of management.

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.