junixsocket icon indicating copy to clipboard operation
junixsocket copied to clipboard

UnsatisfiedLinkError : org.newsclub.net.unix.NativeUnixSocket.createSocket(Ljava/io/FileDescriptor;II)V

Open yuhJohn opened this issue 8 months ago • 1 comments

I ran into a problem with the following exception during multiple boot load , How do I need to check?

at java.lang.Thread.run(Thread.java:750)

Caused by: java.lang.UnsatisfiedLinkError: org.newsclub.net.unix.NativeUnixSocket.createSocket(Ljava/io/FileDescriptor;II)V at org.newsclub.net.unix.NativeUnixSocket.createSocket(Native Method) at org.newsclub.net.unix.AFSocketImpl.createSocket(AFSocketImpl.java:957) at org.newsclub.net.unix.AFSocketImpl.create(AFSocketImpl.java:437) at java.net.Socket.createImpl(Socket.java:475) at java.net.Socket.getImpl(Socket.java:538) at java.net.Socket.bind(Socket.java:662) at org.newsclub.net.unix.AFSocket.internalDummyBind(AFSocket.java:286) at org.newsclub.net.unix.AFSocket.connect0(AFSocket.java:264) at org.newsclub.net.unix.AFSocket.connect(AFSocket.java:236)

yuhJohn avatar Apr 19 '25 09:04 yuhJohn

The native library could not be loaded. Please check the full stack trace ("caused by"); the messages will tell you about the places where it's been looking for the native library.

Most likely you don't have junixsocket-native-common in your classpath, but you could also be running on some platform that is not supported.

Also, be sure to use the latest version of junixsocket (2.10.1 at this point).

kohlschuetter avatar Jun 05 '25 20:06 kohlschuetter

Closing stale issue

kohlschuetter avatar Aug 17 '25 10:08 kohlschuetter