aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/java/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/java/README.md')
-rw-r--r--tensorflow/java/README.md23
1 files changed, 21 insertions, 2 deletions
diff --git a/tensorflow/java/README.md b/tensorflow/java/README.md
index 1eea76c48a..1811fed73a 100644
--- a/tensorflow/java/README.md
+++ b/tensorflow/java/README.md
@@ -32,14 +32,33 @@ Java bindings for TensorFlow.
## Installation
-Build the Java Archive and native library:
+Build the Java Archive (JAR) and native library:
```sh
bazel build -c opt \
- //tensorflow/java:libtensorflow.jar \
+ //tensorflow/java:tensorflow \
//tensorflow/java:libtensorflow-jni
```
+To use the library in an external Java project, publish the library to a Maven repository. For example,
+publish the library to the local Maven repository using the `mvn` tool (installed separately):
+
+```sh
+mvn install:install-file \
+ -Dfile=bazel-bin/tensorflow/java/libtensorflow.jar \
+ -DpomFile=tensorflow/java/pom.xml
+```
+
+Refer to the library using Maven coordinates. For example, if you're using Maven then place this dependency into your `pom.xml` file:
+
+```xml
+<dependency>
+ <groupId>org.tensorflow</groupId>
+ <artifactId>libtensorflow</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
+</dependency>
+```
+
## Example
### With bazel