Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for invoking C++ functional module in Java program

A technology of functional modules and programs, applied in the information field, can solve the problems of low technical efficiency of JNI, and achieve the effect of improving development efficiency and operation efficiency

Inactive Publication Date: 2018-05-01
CHINA PETROLEUM & CHEM CORP +1
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by this invention is to provide a method for calling a C++ program in a Java program, so as to solve the problem that the current JNI technical efficiency is low

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
  • Method for invoking C++ functional module in Java program
  • Method for invoking C++ functional module in Java program
  • Method for invoking C++ functional module in Java program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The implementation of the present invention will be described in detail below in conjunction with the accompanying drawings and examples, so as to fully understand and implement the process of how to apply technical means to solve technical problems and achieve technical effects in the present invention. It should be noted that, as long as there is no conflict, each embodiment and each feature in each embodiment of the present invention can be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.

[0024] figure 1 It is a schematic flow diagram of a method for calling a C++ function module in a Java program according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:

[0025] Step S110, the Java program receives parameters required to run the C++ function module.

[0026] Step S120, the Java program runs the intermediate program, and passes the ...

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 discloses a method for invoking C++ functional module in a Java program. The method includes: allowing a Java program to receive a parameter required by the C++ functional module, allowing the Java program to operate an intermediate program and transmitting the parameter to the intermediate program; allowing the intermediate program to invoke the C++ functional module so as to acquire an execution result corresponding to the parameter, and returning the execution result to the Java program. According to the invention, the intermediate program is executed in a Java code, the C++ functional module is indirectly invoked in a value passing manner, the problem of the low efficiency of invoking of the C++ functional module in the Java program can be solved, and the development efficiency of hybrid programming and the operation efficiency are improved.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a method for calling a C++ function module in a Java program. Background technique [0002] The Java language is an object-oriented programming language. This programming language has the characteristics of simplicity, object-oriented support, distribution, robustness, security, platform independence and portability. As a representative of static object-oriented programming language, Java language has the characteristics of powerful function and easy-to-use. Compared with the Java language, the C++ language has its own characteristics. C++ language is an object-oriented programming language developed on the basis of C language. This language has functions and features such as supporting classes, supporting encapsulation, inheritance, and polymorphism. Because C++ language has the same characteristics of high operating efficiency as C language , so C++ language is often use...

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 Applications(China)
IPC IPC(8): G06F8/30G06F9/448
CPCG06F8/315
Inventor 李晨阳彭璐李敏冯佳丽万红霞张代兰王慧慧周树理
Owner CHINA PETROLEUM & CHEM CORP
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
Eureka Blog
Learn More
PatSnap group products