# US 2017/0255480 A1 · Information processing apparatus and library management method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255480 A1
- Document ID: US20170255480A1
- Status: Published application
- Kind: A1
- Application number: 15/444,555
- Filed: 2017-02-28
- Published: 2017-09-07
- Earliest claimed: 2016-03-03
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Katsuya Sakai
- Web page: https://patentgrep.com/patent/US20170255480A1

## CPC

- G06F 9/44521: {Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

As a portion of processing for activation an apparatus or when an application is installed, a Lib management module determines whether there is a plurality of libraries in a setting of a class path, and, in a case of determining that a plurality of libraries are set, expands the set libraries, and after integrating them as a new library, sets the newly generated library as the class path. In addition, the Lib management module deletes libraries that are included in the library after the integration except for those that are directly accessed.

## Claims

### Claim 1

An information processing apparatus, comprising:
a loading unit configured to, when an installed program is executed, open a library that contains a class used by the program and load the class, the loading unit consuming resources of an amount in accordance with a number of opened libraries;
a determination unit configured to determine whether if a number of libraries that include a class set for the installed program is plural;
an integration unit configured to integrate classes included in the libraries in a number of integrated libraries that is fewer than the number of libraries if it is determined that the number of libraries is plural; and
a deletion unit configured to delete the pre-integration libraries that include the classes included in the integrated libraries excluding libraries that are accessed without going through the loading unit.

### Claim 2 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates all of the classes included in the libraries into the integrated libraries.

### Claim 3 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates into the integrated libraries classes included in, out of the libraries, libraries excluding the libraries that are accessed without using the loading unit.

### Claim 4 (depends on 1)

The information processing apparatus according to claim 1, wherein
if a storage capacity that totals the libraries accessed without using the loading unit is greater than a predetermined threshold, the integration unit integrates in the integrated libraries classes included in, out of the libraries, libraries excluding the libraries accessed without using the loading unit, and if the storage capacity is less than or equal to the predetermined threshold, the integration unit integrates all of the classes included in the libraries in the integrated libraries.

### Claim 5 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit, if the number of the libraries accessed without using the loading unit is greater than a predetermined threshold, integrates in the integrated libraries classes included in, out of the libraries, libraries excluding the libraries accessed without using the loading unit, and if the number of the libraries accessed without using the loading unit is less than or equal to the predetermined threshold, integrates all of the classes included in the libraries into the integrated libraries.

### Claim 6 (depends on 1)

The information processing apparatus according to claim 1, wherein
the libraries are files in which one or more classes are compressed;
the integration unit, if the number of libraries is determined to be plural by the determination unit, expands the libraries, and compresses and integrates into a number of integrated libraries smaller than the number of libraries.

### Claim 7 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates the libraries when the information processing apparatus is activated.

### Claim 8 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates the libraries when an application is installed as the program.

### Claim 9 (depends on 1)

The information processing apparatus according to claim 1, wherein
the determination unit refers to a class path that indicates the location of classes and is described in a configuration file of the installed program to specify the libraries that include a class set for the program.

### Claim 10 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates all of the classes included in the libraries into one library.

### Claim 11 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates the libraries by generating a library that includes the classes to integrate.

### Claim 12 (depends on 1)

The information processing apparatus according to claim 1, wherein
the integration unit integrates the libraries such that a relative class configuration in the libraries before integration is maintained in the library after integration.

### Claim 13 (depends on 1)

The information processing apparatus according to claim 1, wherein a file descriptor is included in the resources.

### Claim 14

A library management method for an information processing apparatus having loading unit for, when an installed program is executed, opening a library that includes a class used by the program and loading the class, the loading unit consuming resources of an amount that is in accordance with a number of opened libraries, the method comprising:
determining whether if a number of libraries that include a class set for the installed program is plural;
integrating classes included in the libraries in a number of integrated libraries that is fewer than the number of libraries if it is determined that the number of libraries is plural; and
deleting the pre-integration libraries that include the classes included in the integrated libraries excluding libraries that are accessed without going through the loading unit.

### Claim 15 (depends on 14)

The library management method according to claim 14, wherein
the libraries are files in which one or more classes are compressed, and
the integrating, if the number of libraries is determined to be plural, expands the libraries, and compresses and integrates into a number of integrated libraries smaller than the number of libraries.

### Claim 16

A non-transitory computer-readable storage medium storing a program for causing a computer to function as
a loading unit configured to, when an installed program is executed, open a library that contains a class used by the program and load the class, the loading unit consuming resources of an amount in accordance with a number of opened libraries;
a determination unit configured to determine whether if a number of libraries that include a class set for the installed program is plural;
an integration unit configured to integrate classes included in the libraries in a number of integrated libraries that is fewer than the number of libraries if it is determined that the number of libraries is plural; and
a deletion unit configured to delete the pre-integration libraries that include the classes included in the integrated libraries excluding libraries that are accessed without going through the loading unit.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein
the libraries are files in which one or more classes are compressed, and
the integration unit, if the number of libraries is determined to be plural by the determination unit, expands the libraries, and compresses and integrates into a number of integrated libraries smaller than the number of libraries.
