I am eager to know that is it possible to get details of jars present in an Android project programmatically. I have searched on Google, but couldn't find any blog or information related to this. Is this possible?
Asked
Active
Viewed 108 times
0
-
details of jar. file? where (pc, android), when (dev time, run time)? – pskink Feb 11 '14 at 10:57
-
in android project and at run time – Sourabh s Feb 11 '14 at 10:59
-
at run time there are no jars in built apk, so you cant do that – pskink Feb 11 '14 at 11:01
-
are you sure because....sometimes we get NoClassDefFoundError ..when class is not found – Sourabh s Feb 11 '14 at 11:07
-
usually we import JAR files in project – Sourabh s Feb 11 '14 at 11:10
1 Answers
0
If you're looking specifically to see if a class is accessible, you could check directly to see if the class exists. Refer to this post
If you're looking more for a list, this post might help you.

Community
- 1
- 1

Ben Pearson
- 7,532
- 4
- 30
- 50
-
actually i want to know the jar details and list of jars present in project , is this possible ? – Sourabh s Feb 11 '14 at 10:58
-
do you specifically want to do it in Java from within the project, or would you like to just see a list so you can, for example, identify orphaned JARs? If the latter, http://classpathhelper.sourceforge.net/ would work. – Ben Pearson Feb 11 '14 at 11:03
-
yes exactly .... i want to know list of used and orphaned JARs...ok try your link – Sourabh s Feb 11 '14 at 11:09