Java application and non-JNI standard binary file mutual calling method
A binary file and java application technology, applied in the direction of binary to binary, program control design, program control device, etc., can solve problems such as difficult implementation, complicated methods, inability to call non-JNI-standard files, etc., and achieve the goal of solving the problem of mutual calling Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] A method for mutually invoking a Java application and a non-JNI specification binary file, comprising:
[0031] Determine whether the binary file is a JNI specification binary file: if it is a JNI specification binary file, write a JNI specification function call file; if it is a non-JNI specification binary file, perform JNI standardization on the binary file, and further write the JNI normalized function call file.
[0032] The steps of JNI normalization are as follows:
[0033] (1) Create a Java application project: declare the calling method to the binary file, and add the support of the local method to the Java application project, and the project generates a jni package;
[0034] (2) The .h header file is compiled under the terminal, and the JNI standardized CPP file is written according to the .h header file. The function naming in the CPP file conforms to the JNI specification, realizes the calling of the binary file, and interacts with the Java layer;
[0035...
Embodiment 2
[0043] A method for mutual calling of a Java application and a non-JNI standard binary file as described in Embodiment 1, the difference is that the method for mutual calling of a Java application and a non-JNI standard binary file includes, judging whether the non-JNI standard binary file It is a non-JNI standard binary file that contains class member functions: if it is a non-JNI standard binary file that contains class member functions, then JNI standardizes the binary file, and writes the non-JNI standard binary files that contain class member functions to call each other file; if it is a non-JNI standard binary file that does not contain class member functions, then the binary file JNI is standardized, and writes a file that does not contain the non-JNI standard binary files that class member functions call each other.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com