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)