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:
OK, it seems adding an external class folder means "adding a folder containing class files" and not, as one might hope, "adding a folder containing .jar files containing class files". Thus eclipse, finding no class files in my tomcat/lib folder fails to see the class files inside servlet-api.jar.
As for my 2nd question it's possible to create "User Libraries" as follows:
To reference this library: