CodePudding user response:
Ok, write the same classpath Java native methods, the name of the parameter on the corresponding lineCodePudding user response:
You need to create a directory in your project and the name of the class and method names consistent TestA, then call you in the other logic TestA. GetContent (" XXX ")Examples are as follows:
Package com. The extend. The demo;
Public class TestA {
The static {
System. LoadLibrary (" XXX ");
}
Public static native String getContent (String XXX);
}