Where should I put external JAR files when developing a web app?

后端 未结 1 1009
悲哀的现实
悲哀的现实 2020-12-16 22:48

I\'m developing a dynamic web application with Java (Servlets/JSP) in Eclipse. I\'m trying to use an external JAR (I\'m using StringUtils from Apache Commons) a

相关标签:
1条回答
  • 2020-12-16 22:56

    They must be placed in yourapp/WEB-INF/lib. (In eclipse you are adding them properly). So make sure the jar is really there. Note that if you are starting the app from within eclipse, you would have to configure deployment assembling.

    The deployment assembly is configured through right click > properties > deployment assembly in eclipse. There you should "Add" your "Java build path entries"

    0 讨论(0)
提交回复
热议问题