aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Attaching Source in the Class file editor of Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Attaching Source in the Class file editor of Eclipse" Watch "Attaching Source in the Class file editor of Eclipse" New topic
Author

Attaching Source in the Class file editor of Eclipse

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
Hi...I'm using Eclipse Helios. I want to attach source in it.
Because whenever i try to open any parent class say 'String' or 'HttpServlet' then it does not open that class and give me message to attach the source file.
Please tell me which source file it is exactly asking for? And how can i get those source files first and attach in my eclipse. So that in future i don't face such issues.
Thanks in advance for your precious time.


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
Any response?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

To attach the SDK source, go to you project's properties dialog, select Java Build Path, then under Libraries select a library (or the JDK) and expand it. One of the subentries might be the source attachment. For a JDK, point it to the src.zip file in the JDK's root directory. Though in Helios you should not have to atatch the source - Eclipse should find it. You might have to add a JDK to the Installed JREs in the preferences though (Eclipse usually picks up a JRE instead of a JDK and JREs don't have source code attached to them).


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Attaching Source in the Class file editor of Eclipse