-
Notifications
You must be signed in to change notification settings - Fork 10
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
Problem native library #42
Comments
I'm not sure that it's a good idea to have a public unstable snapshot build of LightGBM binary in maven. But you can solve it by yourself, if you really need the snapshot build. This thing takes the native libraries out of the jar resources from https://github.com/metarank/lightgbm4j/tree/main/src/main/resources. As resources are global to the ClassLoader (and in a simple case - they are global to the whole classpath) and taken in an explicit order, then you can do the following trick:
Then the native lib loader will prefer your binary to the one in the jar file, and it should work as-is. |
@TBrb Luckily LightGBM released a new shiny 3.2.0 version, so you can try the new build: https://github.com/metarank/lightgbm4j/releases/tag/3.2.0-1. I've published it to maven-central already. |
I'm closing the ticket as fixed, but if the problem persists - don't hesitate to reopen it. |
Hi Shuttie, Sorry for the delay and many thanks for the new release ! I would like to help and contribute to the project, do you have priorities / road map ? |
Hi Shuttie,
Again, many thanks for this very useful library.
We have the following problem
microsoft/LightGBM#2742 (comment)
But it is already corrected in the last source files :) (We built locally and it solved this problem).
Is it possible to update lightgbm4j to have the latest sources ?
The text was updated successfully, but these errors were encountered: