Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
290 views
in Technique[技术] by (71.8m points)

java - Difference between Libraries & lib folders ? How do we add jar files to lib folder?

When i created the dynamic web project, i will have 2 folders with name Libraries and lib. So during the project i added .jar files as follows

Build Path --> Configure Build Path--> Libraries (tab) --> Add external JAR's -- > OK

When i do this, it will add files to Libraries, However i would like to add .jar files to lib folder.

enter image description here

I tried copying all .jar files from Libraries to lib, but it says

enter image description here

Copied .jar files directly to lib folder in directory structure, but i doesn't display in eclipse.

enter image description here

I would appreciate your suggestions and inputs.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Copy jars into WEB-INF/lib directory by copying files themselves (not from Libraries in eclipse view) and hit refresh from eclipse, they will appear in the Web App Libraries

P.S: It is almost always better to use a build tool like maven/ant to manage dependencies


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...