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 »

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 »

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: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: smile.Wrapper.staticInitNative error

Post by shooltz[BayesFusion] »

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