-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.UnsatisfiedLinkError #1
Comments
What OS and processor are you on? |
Hello I am running Windows 10 on an Intel Core i5. [migue.V] ➤ jre1.8.0_251/bin/java -jar WebView.jar ../OneDrive/Documents/Projectos/three-js-dat-gui-3/dist/index.html
Also, whenever it manages to load a page, it does not respond to any input or execute any script provided on command-line. It does run script on the page, but there are no dialogs (alert(), prompt() do not show up). It does seem to run only the most basic script given on a data: url, like "data:text/html,hello<script>var x=2;document.documentElement.innerHTML=' Hello')</script>"writes the message in a H1, but "data:text/html,hello<script>var x=2;document.documentElement.innerHTML=' x='+x+'')</script>"does nothing. Using the onLoad argument also does not seem to work. [migue.V] ➤ ./jre1.8.0_251/bin/java -jar WebView.jar -onLoad "var x=1" "data:text/html,hello<script>var x=2;window.document.writeln(' '+x+'')</script>"["<<<EVENT:load about%3Ablank >>>"] ["<<<EVENT:load about%3Ablank >>>"] Note that whenever it seems to manage executing some javascript, the 'EVENT:load' messages are not displayed. |
When running your example, I get this error:
C:\Users\CDRSP\Downloads\webviewjar-master\webviewjar-master\bin>java -jar WebVi
ew.jar "data:text/html,%3Chtml%3Ehello%3C%2Fhtml%3E"
abr 22, 2020 6:14:55 PM ca.weblite.webview.nativelib.NativeLibraryUtil error
WARNING: Problem with library
java.lang.UnsatisfiedLinkError: C:\Users\CDRSP\AppData\Local\Temp\nativelib-load
er_7045038884957253917\webview.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at ca.weblite.webview.nativelib.NativeLibraryUtil.loadNativeLibrary(Nati
veLibraryUtil.java:343)
at ca.weblite.webview.nativelib.NativeLoader.loadLibrary(NativeLoader.ja
va:139)
at ca.weblite.webview.WebViewNative.(WebViewNative.java:24)
at ca.weblite.webview.WebView.show(WebView.java:230)
at ca.weblite.webview.WebViewCLI.init(WebViewCLI.java:66)
at ca.weblite.webview.WebViewCLI.main(WebViewCLI.java:314)
abr 22, 2020 6:14:56 PM ca.weblite.webview.WebViewNative
SEVERE: null
java.io.IOException: Couldn't load library library webview
at ca.weblite.webview.nativelib.NativeLoader.loadLibrary(NativeLoader.ja
va:141)
at ca.weblite.webview.WebViewNative.(WebViewNative.java:24)
at ca.weblite.webview.WebView.show(WebView.java:230)
at ca.weblite.webview.WebViewCLI.init(WebViewCLI.java:66)
at ca.weblite.webview.WebViewCLI.main(WebViewCLI.java:314)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\CDRSP\Downloads\webviewjar-m
aster\webviewjar-master\bin\webview.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ca.weblite.webview.nativelib.NativeLoader.loadLibrary(NativeLoader.ja
va:136)
... 4 more
Exception in thread "main" java.lang.UnsatisfiedLinkError: ca.weblite.webview.We
bViewNative.webview_create(IJ)J
at ca.weblite.webview.WebViewNative.webview_create(Native Method)
at ca.weblite.webview.WebView.show(WebView.java:230)
at ca.weblite.webview.WebViewCLI.init(WebViewCLI.java:66)
at ca.weblite.webview.WebViewCLI.main(WebViewCLI.java:314)
The text was updated successfully, but these errors were encountered: