1. A method for packaging an application, for use with a system comprising the application and a plurality of libraries, the method comprising: monitoring, in response to runtime execution of the application, library data associated with at least one of the plurality of libraries that is invoked by the application; associating the library data with an identifier of the application; and using the library data and the application identifier to create a package comprising the application and the at least one of the plurality of libraries.