-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create vw_jni.lib in ubuntu 14.04 jessie/sid #1148
Comments
I am facing the same issue. It was working perfectly fine with Mac OS. But when I have deployed it on ubuntu, it was not able to create vw_jni.lib library. |
@jmorra @deaktator Any ideas? |
Yes. The JNI layer is pretty brittle right now. I'd like to rewrite it in total, but that'll have to wait for a little bit. In the meantime here is what I suggest. If you look here and here you'll see how we guess your OS. Basically if you run There are two approaches for loading the native libraries yourself.
If you need more help send me the output of running |
Is there any plan to publish a vw-jni jar for 8.3.0 / 8.3.1? |
It's on my roadmap to pick up but honestly I would rather invest time in getting a better deployment system across the board. If we have reliable packaging on Linux, OSX, and Windows then the Java layer will be truly machine agnostic. If anyone out there wants to contribute a true release process that would be very helpful as I'm not sure when I'll have time to work on it. In the meantime I can try and see if I can do a Java release in the next week or so. But in the meantime it's not hard to build it yourself following the instructions above. |
Thanks Jon, we're going down the route of building it ourselves and just continuing with the use of 8.1 for now. It would be good to know your vision for the deployment process you mentioned, I'd be happy to collaborate. |
If the entire project had a deployment methodology across yum, apt-get, brew, and some Windows thing (I don't know what that is) then the Maven deployment is trivial. We can remove all the code in the java/src/main/bin directory and instead rely on consistent versioning across the native code and the Java code. We'd have to modify the Makefile in the java directory to make sure the generated library is placed in the appropriate system dependent location. Then Java's |
I've started to address this through #1193. At this point it's still a work in progress so I'd love feedback. |
I believe this is addressed in the master branch now. |
I'm getting the same error on both Ubuntu 16.04 and CentOS 6.9, using a very recent build of VW. It seems that one must use There is probably some environment variable that could point the runtime/JVM at the |
Followed this step [](https://github.com/JohnLangford/vowpal_wabbit) for ubuntu. Unable to create vw_jni lib; Getting unsatisfied link error for the same.
java.lang.Exception <java.lang.UnsatisfiedLinkError: no vw_jni in java.library.path> is a java.lang.UnsatisfiedLinkError
Stacktrace was: java.lang.UnsatisfiedLinkError: no vw_jni in java.library.path
The text was updated successfully, but these errors were encountered: