1.编写native接口 package org.demo; public class JniDemo { public static native int bmp2fea(byte[] bmp, byte[] fea, byte[] err); public static native int feaMatch(byte[] fea1, byte[] fea2, String flag, int level); } 2.根据native接口生成声明文件(.h) javah -classpath…