webinf下面的lib文件build_将Jar文件添加到WEB-INF / lib

bd96500e110b49cbb3cd949968f18be7.png

I new in Eclipse,Java and Linux. I search about this issue but I don't reach to answer. I want to write a program that manipulate HBase Tables. So I have some Jar files that they related to the HBase. In ordinary Java application I add Jar files through following instruction

Build Path -> Configuration Build Path -> Add External Jars

So in Dynamic Web Project sound like different. after some search I understand the Jar files must be added in WEB-INF/lib or in %TOMCAT_HOME%/lib. so I get answer from %TOMCAT_HOME%/lib but really stuck about how to add jar files in WEB-INF/lib. I copy all jar files in the folders but it doesn't work.

please help me in detail.

解决方案

you are doing right....

Build Path -> Configuration Build Path -> Add External Jars

In "Order and Export" tab click on select all...

or coping file into WEB-INF/lib

Then just refresh your project and restart the server then deploy the project it will work fine...


版权声明:本文为weixin_42148975原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。