smile.Wrapper.staticInitNative error

The engine.
Post Reply
yeyewy
Posts: 3
Joined: Sat Nov 29, 2014 5:19 am

smile.Wrapper.staticInitNative error

Post by yeyewy » Wed Jul 25, 2018 7:01 pm

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)

yeyewy
Posts: 3
Joined: Sat Nov 29, 2014 5:19 am

Re: smile.Wrapper.staticInitNative error

Post by yeyewy » Wed Jul 25, 2018 7:40 pm

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.

shooltz[BayesFusion]
Site Admin
Posts: 1270
Joined: Mon Nov 26, 2007 5:51 pm

Re: smile.Wrapper.staticInitNative error

Post by shooltz[BayesFusion] » Thu Jul 26, 2018 10:31 am

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/

Post Reply