UnsatisfiedLinkError running JSMILE tutorials

The engine.
Post Reply
xanax
Posts: 6
Joined: Tue Jun 17, 2008 10:48 am

UnsatisfiedLinkError running JSMILE tutorials

Post by xanax »

Hi everybody,

I am a very begginer with SMILE and have just started to use the JSMILE wrappers.

I have a proyect in Java with the tutorials that are provided in the JSMILE documentation and I have include the path to jsmile.dll in the PATH environmental variable. But I am getting a link error and do not know why. The error description is the following:

Exception in thread "main" java.lang.UnsatisfiedLinkError: smile.Network.newNetwork()J
at smile.Network.newNetwork(Native Method)
at smile.Network.<init>(Network.java:86)
at SmileApp.SmileApp.CreateNetwork(SmileApp.java:19)
at SmileApp.SmileApp.main(SmileApp.java:258)


I guess that I am just forguetting something...

Thanks in advance for any comments!
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: UnsatisfiedLinkError running JSMILE tutorials

Post by shooltz[BayesFusion] »

Are you sure that you have most recent jSMILE version? Currently, the Network class does not contain the 'newNetwork' method (which caused the UnsatisfiedLinkError exception to be thrown).
xanax
Posts: 6
Joined: Tue Jun 17, 2008 10:48 am

UnsatisfiedLinkError running JSMILE tutorials

Post by xanax »

Well, I have download it this very morning...

Do I need a special instalation of the SMILE before the JSMILE is installed?
xanax
Posts: 6
Joined: Tue Jun 17, 2008 10:48 am

UnsatisfiedLinkError running JSMILE tutorials

Post by xanax »

Hi!!

You were right :D .

I just find out that I have two different versions of smile.jar, one in the package "jsmile_win32" and a different one in "jsmile_tutorials", aparntly the library that is in the latter is the older one.

I have included the new one and there is no longer a linker error.

Thank you very much!!!!
Post Reply