netty-tcnative: java.lang.UnsatisfiedLinkError: no netty_tcnative_osx_x86_64 in java.library.path
hi When I add netty-tcnative-boringssl-static 2.0.7.Final in the pom file, and run my program, the console shows that:
java.lang.UnsatisfiedLinkError: no netty_tcnative_osx_x86_64 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:229) at java.security.AccessController.doPrivileged(Native Method) at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:221) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:207) at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:118) at io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:82) at io.netty.handler.ssl.OpenSsl.loadTcNative(OpenSsl.java:419) at io.netty.handler.ssl.OpenSsl.<clinit>(OpenSsl.java:89) at io.netty.handler.ssl.SslContext.defaultProvider(SslContext.java:118) at io.netty.handler.ssl.SslContext.defaultServerProvider(SslContext.java:105) at io.netty.handler.ssl.SslContext.newServerContextInternal(SslContext.java:407) at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:441) at com.yunanbao.yunxiazi.proxy.servers.h5login.H5loginServer.run(H5loginServer.java:55) at com.yunanbao.yunxiazi.proxy.servers.h5login.H5loginServer.main(H5loginServer.java:88) 02-28 18:39:13.648 [main] DEBUG i.n.u.internal.NativeLibraryLoader [debug] [86] - netty_tcnative_osx_x86_64 cannot be loaded from java.libary.path, now trying export to -Dio.netty.native.workdir: /var/folders/cg/8__zm_7x70bdzbpyv_sf8z3m0000gn/T
Please tell me where and How can I get the netty_tcnative_osx_x86_64 file? thx~
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 20 (1 by maintainers)
@xinln Be sure to read all the log output … after the error you mentioned, do you see a line a little bit later in the log output that says
Successfully loaded the library?In the past, when I’ve had problems starting one of my apps that used netty, the error above was not the cause … the errors in the logs are easy to misinterpret. I’m not saying the same is true for you, but it might be 😉
I totally second that!
Ah … there are two stack traces in the logs – one preceded by
and the other preceded by
However, after those, I do see a successful load:
(Seems like it might be more appropriate to have those in a
TRACElog rather thanDEBUG…)Not reopening ticket …