wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes How to display Java API source code in 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 "How to display Java API source code in Eclipse" Watch "How to display Java API source code in Eclipse" New topic
Author

How to display Java API source code in Eclipse

Alessandro Calciati
Greenhorn

Joined: Feb 16, 2007
Posts: 2
How can I display Java API source code in Eclipse?
Alessandro Calciati
Greenhorn

Joined: Feb 16, 2007
Posts: 2
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
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
Consider Paul's rocket mass heater.
 
subject: How to display Java API source code in Eclipse
 
Similar Threads
Internal / External API
Platform/Tool for code manipulation
Daemon problem
JAVA Source Attachment in Eclipse
close and open a frame