Skip to content
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

UnsatisfiedLinkError on Windows #133

Open
MarkoArsic opened this issue Jul 7, 2022 · 0 comments
Open

UnsatisfiedLinkError on Windows #133

MarkoArsic opened this issue Jul 7, 2022 · 0 comments

Comments

@MarkoArsic
Copy link

Thanks for this great library!
I would appreciate some help with getting it to work on Windows machine.
I opted in for Installation From prebuilt packages on Windows

  • downloaded latest jar from releases 8.1.2 (latest)
  • downloaded libvip 8.1.2 windows binaries https://github.com/libvips/build-win64-mxe/releases/tag/v8.12.2 (v8.12.2/vips-dev-w64-all-8.12.2.zip)
  • Added a %VIPS_HOME% system environment variable pointing to the extracted directory of vips-dev-w64-all-8.12.2.zip
  • Appended %VIPS_HOME%/bin and %VIPS_HOME% to my $PATH environment variable

Then fired yours Hello World example with following error>
`2022-07-07 12:39:05.916 INFO 14052 --- [nio-8899-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-07-07 12:39:05.916 INFO 14052 --- [nio-8899-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2022-07-07 12:39:05.917 INFO 14052 --- [nio-8899-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2022-07-07 12:39:05.954 INFO 14052 --- [nio-8899-exec-1] com.criteo.vips.Vips : JVips dependencies have been loaded from jar
2022-07-07 12:39:05.955 INFO 14052 --- [nio-8899-exec-1] com.criteo.vips.Vips : Trying to load JVips
2022-07-07 12:39:05.977 ERROR 14052 --- [nio-8899-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: C:\Users\Marko Arsic\AppData\Local\Temp\JVips.dll11204205080077775777: Can't find dependent libraries] with root cause

java.lang.UnsatisfiedLinkError: C:\Users\Marko Arsic\AppData\Local\Temp\JVips.dll11204205080077775777: Can't find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) ~[na:na]
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383) ~[na:na]
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227) ~[na:na]
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169) ~[na:na]
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2407) ~[na:na]
at java.base/java.lang.Runtime.load0(Runtime.java:747) ~[na:na]
at java.base/java.lang.System.load(System.java:1857) ~[na:na]
at com.criteo.vips.Vips.loadLibraryFromJar(Vips.java:112) ~[JVips.jar:8.12.2-69bf715]
at com.criteo.vips.Vips.(Vips.java:63) ~[JVips.jar:8.12.2-69bf715]
at com.archeon.demo.arheon.jVips.service.JVipsService.test(JVipsService.java:20) ~[classes/:na]`

Please help!
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant