question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows 10 not finding DLL in JAR file.

See original GitHub issue

I’m the project lead for ComiXed.

We’re using your library to process WebP encoded comic pages. On Mac no issues have been reported. However some Windows users have reported a bug when working with WebP images (see the thread here for the details - comixed/comixed#159):

Exception in thread "Jarvis-ComiXed" java.lang.UnsatisfiedLinkError: C:\Users\<user>\AppData\Local\Temp\8794223231485648063webp-imageio.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 com.luciad.imageio.webp.NativeLibraryUtils.loadFromJar(WebP.java:131)
        at com.luciad.imageio.webp.WebP.loadNativeLibrary(WebP.java:31)
        at com.luciad.imageio.webp.WebP.<clinit>(WebP.java:38)
        at com.luciad.imageio.webp.WebPDecoderOptions.<clinit>(WebPDecoderOptions.java:20)
        at com.luciad.imageio.webp.WebPReadParam.<init>(WebPReadParam.java:24)
        at com.luciad.imageio.webp.WebPReader.getDefaultReadParam(WebPReader.java:147)
        at javax.imageio.ImageIO.read(Unknown Source)
        at javax.imageio.ImageIO.read(Unknown Source)
        at org.comixed.model.library.Page.getImageMetrics(Page.java:145)
        at org.comixed.model.library.Page.<init>(Page.java:120)
        at org.comixed.loaders.ImageEntryLoader.loadContent(ImageEntryLoader.java:45)
        at org.comixed.adaptors.archive.AbstractArchiveAdaptor.processContent(AbstractArchiveAdaptor.java:211)
        at org.comixed.adaptors.archive.ZipArchiveAdaptor.loadAllFiles(ZipArchiveAdaptor.java:90)
        at org.comixed.adaptors.archive.ZipArchiveAdaptor.loadAllFiles(ZipArchiveAdaptor.java:45)
        at org.comixed.adaptors.archive.AbstractArchiveAdaptor.loadComic(AbstractArchiveAdaptor.java:138)
        at org.comixed.task.model.ProcessComicTask.startTask(ProcessComicTask.java:60)
        at org.comixed.task.runner.Worker.run(Worker.java:187)
        at java.lang.Thread.run(Unknown Source)

We’re using the 1.0 release from Maven of webp-imageio.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ediweissmanncommented, Mar 7, 2020

Thanks for the bug report! Tests seem to fail on Windows 10, but seem to pass on Windows 10 when VS2017 build tools installed.

I think maybe the compiled webp-imageio.dll has a dependency that is not present on Windows 10 by default.

0reactions
ediweissmanncommented, Apr 24, 2020

Should be published now, under: org.sejda.imageio:webp-imageio:0.1.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java jar-file can not find .dll with jna.jar - Stack Overflow
Since it is a windows dll open 'cmd' and type java -jar yourApp.jar. Seeing the errors is important to track down your problem(s)....
Read more >
Problem in convering .jar files to .dll - MSDN - Microsoft
I tried with another "magtek-scra.jar" file. it generated the dll and showing up only 2 Name Spaces but NOT ALL.
Read more >
Windows DLL not found in lwjgl jar file
I try to run the LWJGL libraries aquired from lwjgl.org. I have loaded all jar files into my project as instructed on...
Read more >
putting .DLLs into jar file with packaged .class files
You can do that but you will need to unpack the dll and make sure it is on the user path for the...
Read more >
java.lang.UnsatisfiedLinkError: no dll in java.library.path
so on Linux or .dll on Windows using System.loadLibrary() Java looks for those shared libraries in both PATH environment variable and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found