Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Attaching Source in the Class file editor of Eclipse  RSS feed

 
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any response?
 
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!