Class file loading method and system

A technology for loading systems and files, applied in the field of class files, to speed up the search speed, improve the efficiency of class loading, and solve the effects of third-party system integration
CN100549958CActive Publication Date: 2009-10-14KINGDEE SOFTWARE(CHINA) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
KINGDEE SOFTWARE(CHINA) CO LTD
Publication Date
2009-10-14

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a class file loading method, comprising the steps of: customizing a class loader to replace the default system class loader of a java virtual machine; generating an index file of a jar file required by a java application according to the rules of the self-defined class loader; The Java virtual machine starts the self-defined class loader and initializes the custom class loader; the self-defined class loader requests the upper-level application class loader to load the class file, if the application class loader is unsuccessfully loaded , the class loader of the custom class loads the class file according to the index file. The invention replaces the default system class loader of the virtual machine with the self-defined class loader, uses the self-defined class loader to load class files, and improves the loading efficiency of class files when the system starts. And when loading a large number of Jar files, it will not exceed the file handle limit of the operating system, and can be integrated with third-party systems. The invention also provides a class file loading system.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of class loading, in particular to a method and system for loading class files. Background technique

[0002] Java-based large-scale enterprise software, such as java-based ERP (Enterprise Resource Planning, EnterpriseResource Planning) software, may have hundreds or thousands of jar files, and the components that need to be loaded may come from third-party systems. When starting and running such a software system At the same time, in order to improve the efficiency of starting and running the system and obtain good performance, it is necessary for the JVM (Java Virtual Machine, java virtual machine) to quickly search, locate and load related class (class) files and resource files.

[0003] The class loading of the Java virtual machine (JVM) is to load the bytecode contained in the class file into the JVM, but the class loader (classloader) is not loaded into the JVM intact, it is the class (class) file The content i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More