|
|
|
Re: Project Libraries [message #1330241 is a reply to message #1330021] |
Sat, 03 May 2014 14:58 |
|
On 05/03/2014 06:23 AM, Moe B wrote:
> So we put them in web-inf/lib for the server to find them and in the
> libraries folders for the compiler to find them? Is that what the
> difference is between those two locations?
Moe,
When not using Maven (and I don't like to and don't usually do except at
work), I put all my libraries underneath project/lib. Then, I use Build
Path -> Libraries to bring them into my project and Deployment Assembly
to tell Eclipse to deploy them (and it will deploy them to WEB-INF/lib
for you when you build the WAR or run Tomcat from Eclipse.
Note that when you run your application (presumably to debug it) in
Eclipse with Tomcat, your deployment mimics a real Tomcat deployment
artificially on this path:
workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
....underneath which you'll find project/WEB-INF/lib and all your libraries.
But, yeah, you do have to tell Eclipse one way or another where to find
the libraries. What I've described is how it works in a Dynamic Web Project.
|
|
|
Powered by
FUDForum. Page generated in 0.08470 seconds