Mad-D
Mad-D

Reputation: 4669

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.

Upvotes: 0

Views: 2539

Answers (2)

fmucar
fmucar

Reputation: 14558

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

Upvotes: 1

Siva Arunachalam
Siva Arunachalam

Reputation: 7760

  • Open the lib folder in the file browser and paste all the copied jars.
  • Refresh the lib folder in the

Upvotes: 0

Related Questions