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

Active Publication Date: 2009-10-14
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the present invention is to provide a loading method of class files, which can not search and load class files according to java default order when loading class files, solve performance problems caused by java default order search, and improve system startup and runtime class files. File Loading Efficiency

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Class file loading method and system
  • Class file loading method and system
  • Class file loading method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Java Virtual Machine (Java Virtual Machine, JVM): A virtual computer that can run java code. As long as the interpreter is transplanted to a specific computer according to the JVM specification description, any compiled java code can be guaranteed to run on the system. JVM has its own complete hardware architecture, such as processors, stacks, registers, etc., and also has a corresponding instruction system.

[0039]Class file (class): The file used to store the code instruction set of the java program at runtime, and each class file only belongs to a certain package (Package).

[0040] Package (Package): The namespace of the class file, which corresponds to the directory of the file system on physical storage.

[0041] Class loader: java class loader, because the java program contains many class files, and these files are not loaded into memory at one time like static C programs, they are only loaded when needed. The Java class loader obtains platform-independent byte...

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

PUM

No PUM Login to view more

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.

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 游兴旺
Owner KINGDEE SOFTWARE(CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products