当我运行我的项目时,我得到了异常:no jsmile in java.library.path
。即使我在lib文件夹中添加了jsmile_win64
,在vm选项中添加了.dll
文件:-Djava.library.path="C:Usersadminjsmile.dll";
,但我仍然面临着同样的问题。
import smile.Network;
import smile.learning.DataMatch;
import smile.learning.DataSet;
import smile.learning.EM;
import smile.learning.GreedyThickThinning;
public class MyClass
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
Network _net = new Network();
_net.readFile(workfilehere);
}
}
如何解决此问题?
将-Djava.library.path="C:Usersadminjsmile.dll";
更改为-Djava.library.path="C:Usersadmin"
后工作正常