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
Shogun install - Java compilation error (UnsatisfiedLinkError) #4226
Comments
@ypic honestly i have never used shogun from eclipse, i can provide you a CLI for how to use shogun from JVM |
@vigsterkr could be good yep, better then nothing ;) thanks for the prompt reply |
ok so here's an example from our buildbot: basically you need to have the |
you can actually test this yourself whether it works or not if you enable |
I tried with one of the examples (multiple_kernel_learning):
And I get the following |
Just to add, I've also tried to change the environmental variable $DYLD_LIBRARY_PATH but no changes unfortunately :( |
I googled a bit and found It seems that the Shogun java lib is not visible to your java executable. what happens if you run the tests locally using cmake, i.e. |
@karlnapf and @vigsterkr thanks for your help Gentlemen. It is working now ! I have other small problems (only related to the jvm itself but no big deal) Thanks again for your help guys Y |
Hi there,
I just installed Shogun (Mac OS X - 10.13.3) and tried to compile my first Java Class using the example from the website.
Nothing special to report from the install itself, activated the Java Interface and that's pretty much it.
I'm using Eclipse to run my Java project and I get the following error
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.shogun.shogunJNI.new_RealFeatures__SWIG_0(I)J
at org.shogun.shogunJNI.new_RealFeatures__SWIG_0(Native Method)
at org.shogun.RealFeatures.(RealFeatures.java:42)
at MklRegression.main(MklRegression.java:10)
From my research in many places over the Web I understood it may be a problem from the java.library.path or environment variable DYLD_LIBRARY_PATH.
Just to add that after the install I ran the command export DYLD_LIBRARY_PATH="usr/local/lib/libshogun.dylib:$DYLD_LIBRARY_PATH" as recommended on the Shogun website (for Mac OS users) and I also tried to change the java.library.path in Eclipse but the error still remains so I have to say I'm now really stuck.
Any help would be appreciated chaps :) !
Cheers
Y
The text was updated successfully, but these errors were encountered: