How can I add JAR files to the web-inf/lib folder in Eclipse?

前端 未结 11 1288
忘了有多久
忘了有多久 2020-12-01 10:21

I\'m using Eclipse and I need to be able to add Java libraries (JAR files) into my web application\'s WEB-INF/lib folder. How do I achieve this?

11条回答
  •  温柔的废话
    2020-12-01 11:03

    As soon as you create a Dynamic Web project, follow these steps:

    Right click on project -> Java EE Tools -> Generate Deployment Descriptor Stub

    Eclipse will create a WEB-INF folder with web.xml and lib folder in it. Now you can just copy your jars to this lib folder and you will not get any build problems..

提交回复
热议问题