File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

JAVA Source Attachment in Eclipse

ShaikSalam Bashoeb
Greenhorn

Joined: Dec 10, 2008
Posts: 24
Hello,

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
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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
 
GeeCON Prague 2014
 
subject: JAVA Source Attachment in Eclipse