nixxcode / jvm-brotli

Lightweight, cross-platform Java library for the Brotli compression format
73 stars 10 forks source link

Does not working on MacOS #34

Open sergey-drpa opened 4 years ago

sergey-drpa commented 4 years ago

Mojave 10.14.6

java.lang.RuntimeException: java.io.FileNotFoundException: File /lib/darwin-x86-amd64/libbrotli.dylib was not found inside JAR. at com.nixxcode.jvmbrotli.common.BrotliLoader.loadBrotli(BrotliLoader.java:85) at com.nixxcode.jvmbrotli.common.BrotliLoader.isBrotliAvailable(BrotliLoader.java:63) at Test$Companion.main(Test.kt:15) at Test.main(Test.kt)

parambirs commented 4 years ago

+1. I'm facing the same problem on Mac

Caused by: java.io.FileNotFoundException: File /lib/darwin-x86-amd64/libbrotli.dylib was not found inside JAR.
    at com.nixxcode.jvmbrotli.common.NativeUtils.loadLibraryFromJar(NativeUtils.java:123)
    at com.nixxcode.jvmbrotli.common.BrotliLoader.loadBrotli(BrotliLoader.java:82)
    ... 10 more

I've included the dependency in my build.gradle as follows:

compile 'com.nixxcode.jvmbrotli:jvmbrotli:0.2.0'
Akshay586 commented 3 years ago

Had this issue where the dependency resolution worked for windows. but on making a maven jar it failed to recognize the same over on ubuntu server. Had to manually insert the dependency's jar into the package, it worked like a charm afterward.