Search code examples
javaandroideclipselibrariesbuildpath

Automatically load libraries on project creating. Android, Eclipse


I have figured out how to obtain the effect i desire on the desktop.

(Window > Preferences > Java > Installed JREs > jre7 [Edit] > [Add External JARs])

but i cant get the same effect on android.

In the desktop project i can see the folder "JRE Sysytem Library(jre7)" contains all the JARs i referenced

This directory is not present in the android project. How do I add libraries to be automatically included in an Android project without needing to use the "R-Click Project > Properties > Java Build Path > Libraries" method OR the "R-Click JAR file > Build Path > Add to build path" method in the IDE "Eclipse"


Solution

  • In the desktop project i can see the folder "JRE Sysytem Library(jre7)" contains all the JARs i referenced

    An Android app does not use the JRE.

    How do I add libraries to be automatically included in an Android project without needing to use the "R-Click Project > Properties > Java Build Path > Libraries" method OR the "R-Click JAR file > Build Path > Add to build path" method in the IDE "Eclipse"

    That is not possible, sorry. Android does not use Eclipse's "Add External JARs" regardless of whether it is manually or automatically populated. It only uses JARs in libs/ or attached Android library projects.