• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to display Java API source code in Eclipse

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I display Java API source code in Eclipse?
 
Alessandro Calciati
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Done.

1) Download the sources, from "http://java.sun.com/javase/downloads/index.jsp" choose "Java SE 6 JDK Source Code".
2) Extract the sources: "java -jar jdk-6u1-ea-src-b03-jrl-19_jan_2007.jar"
3) From Eclipse, choose the command Preferences->Java->Installed JREs
4) Edit the default JRE
5) Source attachment...
6) External folder -> j2se/src
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In fact, if you point Eclipse at a JDK (instead of just an JRE), it should pick up the source code automatically. Check Window/Preferences/Java/Installed JREs
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic