Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
274 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...