用java直接调用c里面的main(int argc,*char[] argv),那么在java层面上,就需要使用String[]字符串数组,然后将String[]转化成C语言的char**。 根据前面的文章,制作调用JNI的C头文件: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 ...
* Method: HCopy * Signature: ([Ljava/lang/String;)[Ljava/lang/String; */JNIEXPORT jobjectArray JNICALLJava_com_xmu_engine_HTK_HCopy(JNIEnv*,jclass,jobjectArray);/* * Class: com_xmu_engine_HTK * Method: HVite * Signature: ([Ljava/lang/String;)V */JNIEXPORTvoidJNICALLJava_com_xmu_eng...
* Method: HCopy * Signature: ([Ljava/lang/String;)[Ljava/lang/String; */JNIEXPORT jobjectArray JNICALLJava_com_xmu_engine_HTK_HCopy(JNIEnv*,jclass,jobjectArray);/* * Class: com_xmu_engine_HTK * Method: HVite * Signature: ([Ljava/lang/String;)V */JNIEXPORTvoidJNICALLJava_com_xmu_eng...