Loading native library for FileDescriptor

14 views
Skip to first unread message

Tim Fox

unread,
Oct 28, 2020, 8:02:22 AM10/28/20
to Netty discussions
Hi folks,

I want to use the class io.netty.channel.unix.FileDescriptor in my own program, and I'm getting an UnsatisfiedLinkError at runtime when using it. Presumably this is because the native library has not been loaded.

What's the correct way of loading the Native lib? I notice Netty contains a NativeLibraryLoader class - which looks in various places for the lib, but I couldn't get that to work.

Norman Maurer

unread,
Oct 28, 2020, 10:34:11 AM10/28/20
to ne...@googlegroups.com
For this to use you will need to have either transport-native-kqueue or transport-native-epoll on the classpath and load it via Epoll.ensureAvailability() or KQueue.ensureAvailability(). 


--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/956fc574-b8d9-4c9f-b93f-978324ac276dn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages