Whilst learning to develop servlets I added C:\Program Files\Apache\Tomcat8\lib\servlet-api.jar
to my J2EE project's build path to get the servlets to work. All fine:
I then decided to instead add the entire folder C:\Program Files\Apache\Tomcat8\lib
as an "External Class Folder" and suddenly I'm back to "javax.servlet cannot be resolved".
This seems to make no sense especially when compared to how eclipse adds the Tomcat library - it looks almost identical:
[
I guess the questions are:
- What is wrong with my including an entire folder as a "library"?
- How would one properly add a folder so that it appears as a proper library as in the "Apache Tomcat v8.0" library eclipse adds via wizard