Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes IDEs, Version Control and other tools and the fly likes JAVA Source Attachment 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 "JAVA Source Attachment in Eclipse" Watch "JAVA Source Attachment in Eclipse" New topic

JAVA Source Attachment in Eclipse

ShaikSalam Bashoeb

Joined: Dec 10, 2008
Posts: 24

May I know how to attach java source in eclipse so that i can see api code by clicking on the api classes.

and from where we can download the java source (servlet or jsp or jstl etc..)
Peter Johnson

Joined: May 14, 2008
Posts: 5852

In your project's properties, go to Java Build Path, and on the Libraries tab, expand the JAR files - there will be source files entry - select that and click the Edit button and point it to the source code.

Where to get the source depends on the JAR; usually you can get the source form the same location from which you obtained the binary JAR. If you are using maven, you can ask it to also get the source JAR (which is made extremely easy if you have the m2eclispe plugin) and then access the source in your local repository.

JBoss In Action
I agree. Here's the link:
subject: JAVA Source Attachment in Eclipse
It's not a secret anymore!