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

前端 未结 11 1338
忘了有多久
忘了有多久 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:09

    They are automatically added to the project classpath if its a web project. Sometimes it does not work properly, a refresh or close/open of the project helps.

    if its not a web project you can right click on the library and go to "Build Path" -> "Add to Build Path"

提交回复
热议问题