且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Tensorflow添加到Java Project Netbeans

更新时间:2023-12-02 20:16:58

如果文件位于运行它的目录中,它应该首先工作(我错过了什么?)
在VM选项下设置正确的绝对路径对我有用:

If the file were located in the directory where it was run it should have worked in the first place (Am I missing something?) Setting the correct absolute path under VM Options worked for me:

-Djava.library.path="C:\Program Files\Java\tensorflow"

这样你就不用复制了在你的项目之间来回徘徊。

This way you dont have to copy the dlls back and forth between your projects.

参见:在netbeans中为.dll / .so文件提供'java.library.path'

See also: giving 'java.library.path' in netbeans for .dll/.so files