jSMILE API for GeNIe

The engine.
Post Reply
Anny
Posts: 1
Joined: Wed Jun 10, 2009 12:24 pm

jSMILE API for GeNIe

Post by Anny »

Hello all,

I have problem to resolve this error. Please help me how I can give java library path.
the error is as follows:
:cry: :oops:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jsmile in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at smile.Wrapper.<clinit>(Wrapper.java:28)
at Practice.SmileApp1.CreateNetwork(SmileApp.java:20)
at Practice.SmileApp.main(SmileApp.java:260)
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: jSMILE API for GeNIe

Post by shooltz[BayesFusion] »

Anny wrote:Please help me how I can give java library path.
That may depend on OS and/or application server (if any is used).
lir24
Posts: 9
Joined: Mon Feb 25, 2013 5:00 am

Re: jSMILE API for GeNIe

Post by lir24 »

Hi all,
I have the same question below, and I found no one revolved then.Could someone help me to resolve now? By the way, My operating system is Mac .
Thanks!

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jsmile in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at smile.Wrapper.<clinit>(Wrapper.java:28)
at Net.main(Net.java:6)
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: jSMILE API for GeNIe

Post by shooltz[BayesFusion] »

lir24 wrote:My operating system is Mac.
On OSX you'll need to add -Djava.library.path=<directory where libjsmile.jnilib is located> to java's command line.
lir24
Posts: 9
Joined: Mon Feb 25, 2013 5:00 am

Re: jSMILE API for GeNIe

Post by lir24 »

shooltz wrote:
lir24 wrote:My operating system is Mac.
On OSX you'll need to add -Djava.library.path=<directory where libjsmile.jnilib is located> to java's command line.
Thank you for your help, but I've done this in my terminal, but it said like this:

RentekiMacBook-Pro:~ lir24$ -Djava.library.path=/Users/lir24/Desktop/jsmile_macosx
-bash: -Djava.library.path=/Users/lir24/Desktop/jsmile_macosx: No such file or directory

Should I go to the java directory and add this command line? or some other problems? thanks~
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: jSMILE API for GeNIe

Post by shooltz[BayesFusion] »

The -D option should be added as one of the java's executable parameters. Are you launching your program from the command line or from some IDE?
Post Reply