0

I am currently getting an error of

.jar will not be explored or published. Runtime ClassNotFoundExceptions may result. 

The reason for that is I did not put my libraries under WEB-INF/lib folder directly. I put them in folders. Is there a way to store them rather in folders?

Structure:

WEB-INF
---lib
------folder1
---------<jars>
------folder2
---------<jars>

Those jars are not added to the classpath, even though I select them through Build Path -> Configure Build Path -> Libraries -> Add JARs...

magic_turtle
  • 1,243
  • 3
  • 17
  • 37
  • No example from the Servlet 3.0 spec shows subfolders like that. Does it work at runtime on the server? – nitind Oct 28 '16 at 05:25

1 Answers1

3

First You can create a User Library Go to Window => Preferences=> Java => Build Path => User Libraries. => Then choose New, and give your library a name => Then add the JARs you want.

Once the Librray is created at them in class path of your project.To add right-clicking on the project => Propertries=>Library Tab=>Add Libraries => User Libraries, and selecting your library name.

Zia
  • 1,001
  • 1
  • 13
  • 25