• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic