I inherited an old J ++ project. I have successfully upgraded this project to standard Sun Java.
However, this project includes a native C ++ dll, with which Java code interacts with
I don't know at all how to port a C ++ RNI dll to a JNI dll; I don’t know where to start. I have C ++ source code, but I don't know how to create a JNI dll. Are there any tips / tutorials / online materials that you can look for Java experts?
If licensing is acceptable (LGPL), Java Native Access provides rather FFI friendly than JNI; porting can result in the removal of the RNI layer and a simple representation of a simple “C'-called API”.
Take a look at JNA - you may be able to directly access the RNI DLL; or at least it will make the migration job a lot easier than manually JNI.
, RNI → JNI ++ Java.
JNI JVM, . - , .
Microsoft RNI, Sun JNI, , DLL RNI, DLL JNI. , RNI JNI.
, ++ RNI DLL, , , . ++/C, , RNI DLL, JNI. , , , , .
, JNI Wikipedia, JNI. - .
Java Native Interface: - , JNI. RNI → JNI, * , JNI.
* , , , .
Source: https://habr.com/ru/post/1717597/More articles:ResultSetMetaData returns BigDecimal insted from int - javaAutomating the output of several variables from an object - rWhere to install roles in AuthorizeServices MVC.NET? - authorizationIs there any difference between NUnit, MSTest, etc.? - .netПочему сравнение и empty() ведут себя так на PHP? - syntaxOCaml: check list of membership entries - listTinyMCE or SmartGWT Rich Text Editor for my GWT application? - javaIs it possible to convert a list of PHP function parameters to an array? - functionWhat is the easiest way to configure a server to read data from incoming socket connections? - objective-cWhat was the first "hobby" programming language? - programming-languages | fooobar.comAll Articles