Skip to content

Link to README.md is broken in NativeLibrary.java #11015

Closed

Description

@rola93

I'm trying to run TensorFlow in Java, following this instructions

I'm using Ubuntu 16 and java 8. I'm not sure what did I wrong, but error message says:

$ java -cp libtensorflow-1.2.0.jar:. -Djava.library.path=~/jni HelloTF

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/java/README.md

for possible solutions (such as building the library from source).
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 org.tensorflow.Graph.<clinit>(Graph.java:194)
at HelloTF.main(HelloTF.java:8)

But following https://github.com/tensorflow/tensorflow/tree/master/java/README.md gets 404 - page not found.

Activity

  1. asimshankar commented on Jun 23, 2017

    @asimshankar
    Contributor

    Thanks for the report, I'll update the link (the correct link is https://github.com/tensorflow/tensorflow/tree/master/tensorflow/java/README.md)

    That said, looking at your erro message it seems that ti cannot find the native library. Can do run the following commands to help verify what might be missing in your setup?

    ls ~/jni
    file ~/jni/*
    

    Alternatively, if it makes sense for you, I'd suggest using a build tool like maven or gradle or something as that will involve much less command-line tweaking. See instructions on the website for maven, or if you use other build tools (like gradle), then see the corresponding dependency information section here

  2. added
    stat:awaiting response
    type:support
    on Jun 23, 2017
  3. rola93 commented on Jun 23, 2017

    @rola93
    Author

    Thanks! I solved it giving the correct path to jni 😄

  4. removed
    stat:awaiting response
    on Jun 23, 2017
  5. tatatodd commented on Jun 24, 2017

    @tatatodd
    Contributor

    Cool, looks like this issue is resolved, so I'm closing it out.

  6. tatatodd commented on Jun 24, 2017

    @tatatodd
    Contributor

    Oops I spoke too soon; the real problem is fixed, but this issue is about fixing the README link. :)

  7. added a commit that references this issue on Jun 28, 2017
  8. asimshankar commented on Jun 28, 2017

    @asimshankar
    Contributor

    Closing this as it's been fixed in 4cc3525

  9. added a commit that references this issue on Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:support

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions