Dear creators,
I am using jsmile in windows with eclipse. I am encountering this error. Could you help provide some insights? Thank you so much.
Exception in thread "main" java.lang.UnsatisfiedLinkError: smile.Wrapper.staticInitNative()Ljava/lang/String;
at smile.Wrapper.staticInitNative(Native Method)
at smile.Wrapper.<clinit>(Wrapper.java:35)
smile.Wrapper.staticInitNative error
Re: smile.Wrapper.staticInitNative error
I figured it out.
I put jsmile.dll under my java directory, such as: C:\Program Files\Java\jdk1.8.0_121\bin\
Then, the error disappears.
I shared my experience here.
I put jsmile.dll under my java directory, such as: C:\Program Files\Java\jdk1.8.0_121\bin\
Then, the error disappears.
I shared my experience here.
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: smile.Wrapper.staticInitNative error
The proper way of telling jSMILE where to look for native library is described in SMILE Wrapper's manual. See the "Platforms and Wrappers"/"jSMILE and Java" section. Basically, you need to set either java.library.path or jsmile.native.library system property.
All our documentation is available at https://support.bayesfusion.com/docs/
All our documentation is available at https://support.bayesfusion.com/docs/