我正在尝试在 Eclipse Oxygen(操作系统:Ubuntu Linux 16.x)中设置 TensorFlow Java 应用程序。我安装了 Tensorflow,并按照 Java(Maven 项目)安装官方文档中提到的过程进行操作。我下载了 libtensorflow-1.3.0.jar、jni 文件并包含在构建路径中。当我执行该程序时,出现以下错误
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot find TensorFlow native library for OS: linux, architecture: x86_64. See https://github.com/tensorflow/tensorflow/tree/master/tensorflow/java/README.md for possible solutions (such as building the library from source). Additional information on attempts to find the native library can be obtained by adding org.tensorflow.NativeLibrary.DEBUG=1 to the system properties of the JVM.
at org.tensorflow.NativeLibrary.load(NativeLibrary.java:66)
at org.tensorflow.TensorFlow.init(TensorFlow.java:36)
at org.tensorflow.TensorFlow.<clinit>(TensorFlow.java:40)
at com.tensorflow.malwaredetection.App.main(App.java:13)
Run Code Online (Sandbox Code Playgroud)
应用程序.java
package com.tensorflow.malwaredetection;
import org.tensorflow.TensorFlow;
/**
* Hello …Run Code Online (Sandbox Code Playgroud)