Supercharge Your Innovation With Domain-Expert AI Agents!

Java operation method, system and terminal

A technology of program operation and definition, which is applied in the computer field, can solve problems such as no processing logic, achieve easy operation, reduce requirements, and achieve the effect of security protection

Pending Publication Date: 2019-12-03
广东云徙智能科技有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the processing logic for loading is not proposed

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
  • Java operation method, system and terminal
  • Java operation method, system and terminal
  • Java operation method, system and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] Such as figure 1 Shown, the present invention is a kind of Java program operating method, and described method is specifically:

[0067] S1. Obtain a class definition list under the agreed path;

[0068] S2. Sort the class definition list in the list according to the custom rules;

[0069] S3. Determine whether there is currently a class definition to be loaded;

[0070] S4. If there is a class definition to be loaded, use the class definition to complete the loaded class;

[0071] S5. If there is no class definition to be loaded, continue to search for the class definition to be loaded.

[0072] It is stated that the JVM (Java Virtual Machine) is called a Java virtual machine, 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 can be guaranteed Code can run on this system, JVM has its own complete hardware, such as processor, stack, registers, e...

Embodiment 2

[0083] The loaded classes include a timed update process such as figure 2 Shown is a schematic flow chart of the timing update process of the loaded class, and the timing update process is:

[0084] Obtain the agreed path list;

[0085] Compare the list of scanned paths;

[0086] Determine whether there is a difference between the two lists;

[0087] Complete the new path scan task with no difference.

[0088] The above-mentioned judgment whether there is a difference between the two lists, if there is a difference:

[0089] Sort the newly added paths according to custom rules;

[0090] Obtain the class definition list under the newly added path;

[0091] Determine whether the class definition under the newly added path has been loaded;

[0092] If it has been loaded, replace the existing class definition and save the scanned path list;

[0093] Complete the scan task for the new path.

[0094] If it is judged that the class definition under the newly added path is no...

Embodiment 3

[0101] Such as image 3 As shown, the present invention provides a system:

[0102] Class definition list acquisition module 1: the class definition list acquisition module is used to acquire the class definition list under the agreed path;

[0103] Custom sorting module 2: the custom sorting module is used to sort the class definitions in the list according to custom rules;

[0104] Judgment module 3: the judgment module is used to judge whether there is a class definition to be loaded at present; if there is a class definition to be loaded, then use the class definition to complete the loaded class; if there is no class definition to be loaded, continue to search for the class definition to be loaded Loaded class definitions.

[0105] Described Java program operation system also comprises loaded class updating module, and the process of described loaded class updating module updating loading class is:

[0106] Obtain the agreed path list;

[0107] Compare the list of sca...

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 relates to the technical field of computers, in particular to a Java program running method and system and a terminal. The Java program running method comprises the steps of acquiring aclass definition list under an appointed path; sorting the class definitions in the list according to a custom rule; judging whether a to-be-loaded class definition exists or not at present; if the class definitions to be loaded exist, the class definitions are used, and the loaded classes are completed; and if the to-be-loaded class definition does not exist, continuing to search the to-be-loadedclass definition. The method provided by the invention can realize real-time modification of the running logic in Java programming.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a Java program running method, system and terminal. Background technique [0002] Java is a language that is often used in programming, but compared to dynamic languages ​​such as Python or Php. The dynamic and real-time modification ability of Java programs during operation has always been relatively weak. [0003] There is a new runtime dynamic change mechanism in the prior art. As long as the latest version of the Jar package is placed according to the agreed path rules, the real-time modification of the running logic can be realized. The so-called Jar file is the packaging form of the Java binary code, and the Java After the class is compiled, it is compressed into a file with an extension of Jar, which is used to provide corresponding functions. If the Java program needs this function, just load the class in the Jar file. Jar files are not only used for compression and ...

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
IPC IPC(8): G06F9/445
CPCG06F9/44521
Inventor 李元佳张优杨郭逸重
Owner 广东云徙智能科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More