Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8257495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:12:59+00:00 2026-06-08T02:12:59+00:00

New version of ADT r17 plugin for Eclipse added feature to automatically setup JAR

  • 0

New version of ADT r17 plugin for Eclipse added feature to automatically setup JAR dependencies. Any .jar files in the /libs folder are added to the build configuration now. Unfortunately Android Dependencies classpath container is non modifiable.

Non modifiable android dependencies classpath

How can i attach javadoc and sources to the automatically inserted .jar (from /libs folder)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:13:01+00:00Added an answer on June 8, 2026 at 2:13 am

    The best way to answer your question is to summarize the answers from Xavier, plastiv, VinceFR and Christopher.

    Step by step guide

    In order to link the sources and javadoc to a .jar library that is automatically linked by Eclipse you have to do the following:

    1. Place the library .jar file in the libs folder, and the associated source .jar and doc .jar files in separate subfolders such as libs/src and libs/docs. You can use a name other than src and docs if you want, but it’s important that the .jar files aren’t directly in the libs folder.
    2. Create a .properties file in the libs folder with the exact name of the actual library .jar (see example). Make sure you keep the .jar part.
    3. Specify the relative paths to the sources and javadoc .jar in the .properties file.
    4. Close and re-open the Eclipse project! Optionally, refresh the project by pressing F5.
    5. Select an object of the linked library in the source code.
    6. Open the Javadoc view in Eclipse to check the documentation (see screenshot).
    7. Open the source code declaration (default shortcut: F3) of the selected object.

    Example

    The example uses the Gson library.

    Directory structure of the libs folder:

    libs
    ├── docs
    │   └── gson-2.2.2-javadoc.jar
    ├── gson-2.2.2.jar
    ├── gson-2.2.2.jar.properties
    └── src
        └── gson-2.2.2-sources.jar
    

    Contents of gson-2.2.2.jar.properties

    src=src/gson-2.2.2-sources.jar
    doc=docs/gson-2.2.2-javadoc.jar
    

    Additional information

    You can of course move the javadoc and sources .jar into other folders and specify relative paths. That’s up to you. Placing the source and javadoc jars directly into the lib folder is possible but not recommended, as that causes documentation and source code to be included in your application.

    Screenshot of the Eclipse JavaDoc panel:

    JavaDoc view in Eclipse

    Screenshot of an Eclipse project using Gson with Android 4.2.2.:

    Eclipse test project screenshot


    Referencing unpacked javadocs

    In case you want to reference javadocs which are not provided as a packed .jar but simply as files and folders as asked by android developer in the comments do the following:

    1. Place the library .jar in the libs/ folder
    2. Create a yourlibraryname.jar.properties file (don’t forget the .jar) with the following content:

       doc=docs
      
    3. Add the javadocs folders to the libs/ folder.

    You should come up with the following folder structure:

    ├── docs
    │   ├── allclasses-frame.html
    │   ├── allclasses-noframe.html
    │   ├── com
    │   │   └── google
    │   │       └── ads
    │   │           ├── Ad.html
    │   │           │   ....
    │   │           └── package-tree.html
    │   │   ...
    │   └── stylesheet.css
    ├── GoogleAdMobAdsSdk-6.4.1.jar
    └── GoogleAdMobAdsSdk-6.4.1.jar.properties
    

    Do not forget to close and re-open the Eclipse project as mentioned above!
    Here is a screenshot of a working example project referencing the GoogleAdMobAds Android library.

    GoogleAdMobAds Android library Eclipse project

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Starting with a recent new version of ADT, I've noticed this new attribute on
Does reinstalling a new version of Xcode automatically overwrite the old? e.g. I had
I have downloaded a new version of Tim Pope's surround plugin. I noticed he
I just reinstalled the new version of Ubuntu, and afterwards eclipse + android sdk
Since installing the new version of ADT (14.0) my renderscript stuff does not compile
I have installed new eclipse and ADT, i have JDK 1.6 installed in the
I downloaded Eclipse Juno Java EE edition and installed ADT plugin . I created
The new version of SQLite has the ability to enforce Foreign Key constraints, but
I installed a new version of Apache server, I used options like --with-PACKAGE to
In the new version of Bouncy Castle library there are changes in PKCS10CertificationRequest .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.