tags:

views:

389

answers:

4

Im new to eclipse , can anybody tell me how to use an JAVA API in eclipse. or share any sample Java API.

Yes, how to use JavaDoc file in eclipse.

+1  A: 
Rich Seller
in the Java project which i create i want to use an API. how do i use it
Thank you. I could understand that adding an API is same as using a plugin which is also as a jar file.
A: 

Do you mean: how to use a third-party Java library in your Java project in Eclipse?

Right-click your project in the Package Explorer and choose Properties. Go to "Java Build Path". Click "Add JARs" or "Add External JARs" to add the JAR file(s) of the library to your project.

"Add JARs" is for adding JAR files that are in your project directory. "Add External JARs" is for adding JAR files that are not in your project.

Note that the Eclipse help (Help / Help Contents) contains a lot of information, including information on how to work with Java projects in Eclipse and how to add libraries to your Java project.

Jesper
+4  A: 

Yes, how to use JavaDoc file in eclipse.

You can download the Javadoc jar file from the respective project and include it in your build path

Eclipse==> project-->properties-->Java Build Path-->click on the jar file--> edit JavaDoc

Point it to the API URL location/Downloaded Jar file,

Typically, shift + F2 opens the API when the class is focussed upon

Narayan
its same as using a plugin which is as a jar file.
This is the way JavaDoc is configured from eclipse IDE
Narayan
+1  A: 

Here are some nice Eclipse video tutorials . The version of Eclipse is dated ( 3.1 ), but the concepts are still there.

Robert Munteanu