How to add Javadoc for Servlet API in Eclipse

前端 未结 5 1902
太阳男子
太阳男子 2020-12-05 08:46

I\'ve a dynamic web app in Eclipse that is using Tomcat as runtime environment.

I cannot add Javadoc path Tomcat Servlet API: as appears, the edit button is always d

5条回答
  •  醉梦人生
    2020-12-05 09:21

    I've been continuously trying to attach the sources for javax. libs in a proper way with no result, until I found that in some cases by some reason Eclipse is messing up the relationship between .jar and its classes. E.g. when I clicked upon Attach Source... for the HttpServlet.class the given option to provide sources for my gwt-user.jar lib confused me a little bit.

    Hence one may try to play with the precedence of his libs at Project > Properties > Java Build Path > Order and Export to put your kit over the rest (e.g. put Apache Tomcat v7.0 library higher then GWT SDK). Also at the Libraries tab provide the proper sources archive for servlet-api.jar like apache-tomcat-7.0.22-src.zip. Magically the problem is solved after all.

提交回复
热议问题