kohlschutter / junixsocket

Unix Domain Sockets in Java 7 and newer (AF_UNIX), AF_TIPC, AF_VSOCK, and more
Apache License 2.0
433 stars 114 forks source link

Outdated documentation regarding installation of native JNI libraries #30

Closed neuhaus closed 7 years ago

neuhaus commented 7 years ago

I think at some point the project switched over to NAR however the only documentation there is (at https://code.google.com/archive/p/junixsocket/wikis/GettingStarted.wiki) did not get updated.

Is there any documentation that tells me how I can get the native libraries to load with release 2.0.4? I built the libjunixsocket-native-2.0.4.so file but java can't find it.

PS I'm using gradle in my project

gesellix commented 7 years ago

I use these dependencies in my Gradle script:

    compile('com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4') {
        exclude module: 'log4j'
    }
    compile('com.kohlschutter.junixsocket:junixsocket-common:2.0.4') {
        exclude module: 'log4j'
    }
neuhaus commented 7 years ago

I was using compile 'com.kohlschutter.junixsocket:junixsocket-native:2.0.4' previously, changing it to junixsocket-native-common did the trick. Thanks!