-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes on DLL loading.txt
55 lines (41 loc) · 1.33 KB
/
notes on DLL loading.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
All of the below was done with -Djava.library.path=./deps/z3-4.5.0-win-x86
Running
```
init {
System.loadLibrary("libz3java")
}
```
results in:
```
java.lang.UnsatisfiedLinkError: C:\Users\Geoff\Code\sojourn-CVG\deps\z3-4.5.0-win-x86\libz3java.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.empowerops.sojourn.Z3SolvingPool.<clinit>(Z3SolvingPool.kt:17)
at ...
```
Running
```
init {
System.loadLibrary("libz3")
System.loadLibrary("libz3java")
}
```
results in _the tests going green_ (!!!)
Running
```
init {
System.loadLibrary("msvcr110")
System.loadLibrary("libz3")
System.loadLibrary("libz3java")
}
```
results in:
```
java.lang.UnsatisfiedLinkError: C:\Users\Geoff\Code\sojourn-CVG\deps\z3-4.5.0-win-x86\libz3.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at ...
```