简体   繁体   中英

Eclipse Dynamic Web Application putting jar files in WEB-INF/lib and Java Build Path

I have a very "basic" question regarding Java web application development (servlet). What is the difference between putting a jar file in WEB-INF/lib and putting it in Java Build Path/Library/External Jar?

Java Build Path/Library/External Jar is only managed by eclipse so if you build war and if your builder (or if you build externally) doesn't copy over these jars to WEB-INF/lib then you would loose them at runtime

also when you share that code with other developers, or if you use other IDE it will not help

better to use some standard and mature dependency manager / build tool like maven than copying over library to WEB-INF/lib manually

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM