facebook

Javadoc J2EE 1.4 [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #226440 Reply

    How do I enable javadoc with the J2EE 1.4 Library? When I move my cursor over a class from one of the librarys from the 1.4 library then I don’t get the javadoc information (I also don’t get the javadoc info with the code completion) . This is offcourse very annoying because I can’t retrieve class/method (etc.) information and this slows my development om my web projects.

    I it possible to enable this? Or do I need to use the javadoc in HTML form?

    #226446 Reply

    Riyad Kalla
    Member

    We are sorry for this inconvenience, we currently don’t ship source or Javadoc with the libraries we support but we will hopefully be changing this in a future release.

    In the mean time you can remove the 1.4 library set and attach your own User library to your bguild path that has the Javadoc (and source) attached if you wish.

    #226462 Reply

    I searched for these library’s but I couldn’t find them. Could you help me out and point me in the right direction?

    Thank you.

    #226468 Reply

    Riyad Kalla
    Member

    What JARs did you search for? What Files are you trying to step into?

    If you are only doing JSP/Servlet development, most likely the only JARs you will need in your build path are the servlet and jsp API JARs from your app server. Then you can download the app server’s source code and attach it to the JARs.

    #226477 Reply

    For the biggest part I only develop JSP and servlets (I started recently), but I also use the mail.jar for sending E-mails.

    I downloaded Tomcat 5.5 source. I found the javax library source within it. I tried to attach the source code to the jar file with “right-mouse on jar -> properties -> Java Source Attachment” but this didn’t do anything. When I reopend the Java Source Attachment screen the Location path was empty. What am I doing wrong?

    The mail.jar also doesn’t have the javadoc and stuff (as expected). Do you also have a solution for this?

    Thank you

    #226483 Reply

    Riyad Kalla
    Member

    1) For every binary JAR that you have in your path that you want to attach Source OR Javadoc to, you MUST download the exact same version of the source code. For example, if you have JBoss’s J2EE libraries in your path, and try and attach the Tomcat source code to it, that will not work.
    2) For ease-of-use-sake I suggest you remove the J2EE 1.4 Library set from your build path, then go and add the servlet-api.jar and jsp-api.jar files from Tomcat’s /common/lib dir to your build path, THEN go and attach the source code for those two JARs from your Tomcat download. Please note I am assuming you are using Tomcat to test your app on, if you are not, then please use the libraries and source code (if available) from the app server you are running on.
    3) When attaching source code, you want to attach the base directory that contains the first directory of the source tree. For example, say you want to attach source to org.apache.tomcat classes, then you would find the source directory that contained the top level “org” directory in it (usually called “share” in apache projects) and attach THAT directory.
    4) If you cannot figure out step 3, then I suggest attempting to open the source code of a class (like HttpServletRequest) and let Eclipse prompt you with the “Choose Source” error page, then click the button and navigate all the way to the HttpServletRequest source file and select it, Eclipse will automatically fill in the rest of the source pthat for the remainder of the classes FOR that JAR.

    #226490 Reply

    Thank you, it works now :D. This is much better when I am programming.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Javadoc J2EE 1.4 [Closed]

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