facebook

Javadoc generation

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #226271 Reply

    Roel De Nijs
    Member

    When i want to generate javadocs of my package, i get these errors/warnings

    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:9: package javax.servlet does not exist
    import javax.servlet.ServletException;
    ^
    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:10: package javax.servlet.http does not exist
    import javax.servlet.http.HttpServletRequest;
    ^
    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:11: package javax.servlet.http does not exist
    import javax.servlet.http.HttpServletResponse;
    ^
    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:12: package javax.servlet.http does not exist
    import javax.servlet.http.HttpSession;
    ^
    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:67: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class be.aquafin.webgis.algemeen.Login
    public boolean heeftGebruikerToegang(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ^
    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:67: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class be.aquafin.webgis.algemeen.Login
    public boolean heeftGebruikerToegang(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ^
    C:\eclipse\workspace\AquaGis4Web\src\be\aquafin\webgis\algemeen\Login.java:67: cannot resolve symbol
    symbol : class ServletException
    location: class be.aquafin.webgis.algemeen.Login
    public boolean heeftGebruikerToegang(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ^

    I guess i have to indicate somewhere where the documentation of these classes can be found, because they are standard java classes. but i have no idea where

    can you help me with this one
    thanks!

    #226277 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this is a classpath issue with your javadoc ant task, you need to add servlet-api.jar and maybe jsp-api.jar to your classpath so Javadoc can resolve the classes.

    #226281 Reply

    Roel De Nijs
    Member

    i added them to my project build path and now it’s working fine

    thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Javadoc generation

You must be logged in to post in the forum log in