"Original" Without encapsulating the jar package directly into the project using the method (like the Android is library function)

Source: Internet
Author: User
1, the production of Lib project, here I simply make a test class

2, Eclipse in Java Project Project Introduction method 2.1, a new Java project, in the property configuration Select "Java Build Path"--"Projects"-"ADD" Select just the Ajars project

2.2, write a test class, you can see without importing the jar package can be directly used in the test class ajars in the EXE () method

3, Eclipse in the Web project reference method 3.1 Create a new Web project, the 2.1 method to introduce the project (in the eclipse in the development process will be used, do not reference eclipse will error, but for Tomcat to run this feature is not relevant) 3.2 configuration Tomcat Engineering references for CLASSPATH

Open the properties configuration for Tomcat in Eclipse, press the arrow procedure to configure

3.3 Making a JSP test page

3.4 Deployment project, open JSP page view test results

4, Tomcat configuration reference (plays, in fact, not difficult, understand the cmd command can)

Add Ajars Engineering to the last side of the classpath configuration in Catalina.bat

Steal a lazy, the final result is not, to this end

Original content, please give more advice

"Original" Without encapsulating the jar package directly into the project using the method (like the Android is library function)

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.