Results 1 to 6 of 6
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default show the comment in the imported class

    Hello every body,
    i had created a jar with ant and added the jar in my path,i'm using eclipse .
    steps1
    created a class named Test has a method getTestValue() which returns "hai" added comment for all these
    step2:
    created the jar added to the path in eclipse
    Step3:
    when i imported that class's method i didnt get the comment i added how can i do this ,means to show the comment in the imported class


    thanks in advance

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,445
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by javastuden View Post
    Hello every body,
    i had created a jar with ant and added the jar in my path,i'm using eclipse .
    steps1
    created a class named Test has a method getTestValue() which returns "hai" added comment for all these
    step2:
    created the jar added to the path in eclipse
    Step3:
    when i imported that class's method i didnt get the comment i added how can i do this ,means to show the comment in the imported class


    thanks in advance
    I probably don't understand your question at all but all I can say is that normally .jar files contain compiled java code (.class files) and they don't contain any comment; it is stripped away by the compiler.

    kind regards,

    Jos

  3. #3
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default see the pic

    thanks for ur reply
    are u using any ide for example eclipse ,myeclipse etc then do this
    on placing the mouse over the Calender then the comment is showing which is in the rt.jar in the jre in the class called java.util.Calender if you open the src folder in the jdk then we can see the same comment in the src

    this same comment is showing when placing the mouse over the Calender

    i asked about that ,the pic shows the same
    Attached Files Attached Files

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

  5. #5
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,445
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by javastuden View Post
    thanks for ur reply
    are u using any ide for example eclipse ,myeclipse etc then do this
    on placing the mouse over the Calender then the comment is showing which is in the rt.jar in the jre in the class called java.util.Calender if you open the src folder in the jdk then we can see the same comment in the src

    this same comment is showing when placing the mouse over the Calender

    i asked about that ,the pic shows the same
    If you want to see javadoc comments for the stuff in your .jar you have to tell eclipse where it can either find the sources or the javadocs for the classes in that .jar. The distribution probably came without them (or you haven't really read the installation pages).

    kind regards,

    Jos

  6. #6
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default

    hi,
    just put like this
    /**
    *Hello there
    *
    */
    then this will come where import those class or method
    that's all
    thank you

Similar Threads

  1. How to show class initialize data in JSP ?
    By tking88 in forum New To Java
    Replies: 0
    Last Post: 03-07-2010, 09:17 AM
  2. Is the imported package foo beeing used in the programm
    By cthulhufhtagn in forum New To Java
    Replies: 3
    Last Post: 11-01-2009, 04:27 PM
  3. How can I show my log class in jTextArea
    By mtz1406 in forum AWT / Swing
    Replies: 4
    Last Post: 10-29-2009, 12:15 PM
  4. Data from a model class won't show up in the table
    By ayampanggang in forum AWT / Swing
    Replies: 3
    Last Post: 11-27-2008, 08:20 PM
  5. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 06:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •