Results 1 to 14 of 14
  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Rep Power
    0

    Exclamation source not found eclipse

    Hi all,
    m trying to view the implemenaion of SessionFactory hibernate , but when i clicked over the SessionFactory , it is showing me the function but no implementation of the function, i have jar file included in class path

    any rep

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    Do you have the source code?
    And is it "attached" to the jar.
    Can't quite remember how to do that with Eclipse, but I think it's in the project libraries bit.

  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Rep Power
    0

    Default reply

    thanks for entertaining my thread
    my code is thi

    public class HibernateUtil {

    private static SessionFactory sessionFactory;
    private HibernateUtil() {
    super();
    }
    }
    i just click to the SessionFactry and it took me to all the functions inside , but i cannt see the implementation

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    Re-read my post.
    Do you have the Hibernate source?
    And is it attached to the jar (in Eclipse)?

    Eclipse cannot magically create the source code.

    Look in the Eclipse help for something like "attach source".

  5. #5
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Do you have the source code?
    And is it "attached" to the jar.
    :rolleyes:
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    Hang on.
    SessionFactory is an interface isn't it? So even if you have got the source code attached, that is all you'll get Eclipse to see anyway.

  7. #7
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    But you still get to see the interface implementation.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    Yes, but I suddenly thought that the OP said "i just click to the SessionFactry and it took me to all the functions inside , but i cannt see the implementation". Which would be the case with an interface...so it's possible they have the source code attached, but want to see an implementation of SessionFactory. Except, of course, that Eclipse won't know that.

  9. #9
    Join Date
    Aug 2010
    Posts
    5
    Rep Power
    0

    Default

    yes may be , butjava.util.List is an interface and when i clicked over List it showed me the implemention , try it will work---

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    No it doesn't.
    It gives you the source for the interface...an implementation would be a class, not an interface.

    So, are you getting the source code or not? If not then you need to get the source code for Hibernate.

    Have you done what's been suggested here (ie attaching the source code to the jar library)?

  11. #11
    Join Date
    Aug 2010
    Posts
    5
    Rep Power
    0

    Default

    yes i attacehed the jar library - actually what i want that it shuld tell me the function inside sessinfactory and the function written code inside them, amyway because when i click the Sessionfactory it took me to a class where i seen the functions written and also it saya at the up - te source not found that means something still has to set

  12. #12
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    What? Can you repost that in an understandable wording?

    And be assured that there is a difference between debugging into an implementing class and showing an interface declaration.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  13. #13
    Join Date
    Aug 2010
    Posts
    5
    Rep Power
    0

    Default

    Allrigth m sory, for wrong wording
    when i clicked over the SessionFactory - i mean ctrl+ckick over the word - i got this - see th image, now in that i want the implementaion of the methods inside the SessionFactory -- m using eclipse--- please go to this link---http://www.adpostingjobs-online.com/image.JPG
    Last edited by prashantchouhan9; 08-11-2010 at 07:01 AM.

  14. #14
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Yep you have not attached the source files. Click the "Attach Source" button in that window and select the source file.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Replies: 4
    Last Post: 04-23-2010, 05:51 PM
  2. Jsp source not found
    By jadeite100 in forum Web Frameworks
    Replies: 2
    Last Post: 01-19-2010, 02:23 PM
  3. Jsp source not found
    By jadeite100 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 01-17-2010, 01:35 AM
  4. Replies: 0
    Last Post: 11-22-2008, 01:49 AM
  5. Strange error message "Source not found"
    By ppayal in forum Eclipse
    Replies: 0
    Last Post: 11-25-2007, 06:19 PM

Posting Permissions

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