We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 912db88 commit 84bd9ecCopy full SHA for 84bd9ec
core/src/main/java/dev/webview/webview_java/WebviewNative.java
@@ -83,6 +83,7 @@ private static WebviewNative runSetup() {
83
}
84
85
try {
86
+ // Copy it to a file.
87
InputStream in = WebviewNative.class.getResourceAsStream(lib.toLowerCase());
88
byte[] bytes = StreamUtil.toBytes(in);
89
Files.write(target.toPath(), bytes);
@@ -92,6 +93,8 @@ private static WebviewNative runSetup() {
92
93
System.err.println("Unable to extract native: " + lib);
94
throw e;
95
96
+
97
+ System.load(target.getAbsolutePath()); // Load it. This is so Native will be able to link it.
98
99
100
return Native.load("webview", WebviewNative.class);
0 commit comments