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:
Ulisses Lima
2023-07-31 12:57:13 -03:00
committed by GitHub
parent ce6219a626
commit adf98d4597
6 changed files with 179 additions and 0 deletions

View File

@@ -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();
}