The standard Java class library may not support the platform-dependent features needed by your application.
You may already have a library or application written in another programming language and you wish to make it accessible to Java applications
You may want to implement a small portion of time-critical code in a lower-level programming language, such as assembly, and then have your Java application call these functions这是从网上搜的,我也没接触过,计划下一步研究一下 到Google上搜些教程看看吧
需要注意的细节是:
要注意unicode和gbk字符集之间的转换,否则中文串会出现乱码。
上面的程序中,引擎不是我写的,别人写好了,给了我一个exe文件,我现在做了一个界面,怎么把他们联系起来
剩下的问题是,Java怎么给exe文件传送字符串,c程序怎么接受?
只知道有jni,但是没用过
java.lang.Random是JNI的一部分吗?
我觉得JNI是java和其他程序的代码之间通信,
现在要求是java和一个c写得可执行程序通讯
应该不太一样吧
The standard Java class library may not support the platform-dependent features needed by your application.
You may already have a library or application written in another programming language and you wish to make it accessible to Java applications
You may want to implement a small portion of time-critical code in a lower-level programming language, such as assembly, and then have your Java application call these functions这是从网上搜的,我也没接触过,计划下一步研究一下
到Google上搜些教程看看吧