BAEL-4165 - Custom DLL Load - Fixing the "java.lang.UnsatisfiedLinkError" Error (#14393)
* first draft * review 1 * review 1 - test setup
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.baeldung.unsatisfiedlink;
|
||||
|
||||
public class JniUnsatisfiedLink {
|
||||
|
||||
public static final String LIB_NAME = "test";
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.loadLibrary(LIB_NAME);
|
||||
new JniUnsatisfiedLink().test();
|
||||
}
|
||||
|
||||
public native String test();
|
||||
|
||||
public native String nonexistentDllMethod();
|
||||
}
|
||||
Reference in New Issue
Block a user