title: Cannot find Tensorflow native library for OS
body: <p>I am trying to export my image classifier program wrote in Java, made with Tensorflow (added through Maven) into a runnable jar file with all the dependencies (including Tensorflow of course) so it can work on external computers. </p>
  
  <p>Once the jar done, I tried running it onto multiple Windows 7 (or more recent) computers: on half of them, the program was working correctly, but on the other half (including mine), it was not: indeed, when the image detection event was fired thanks to a button on the GUI, an error appears on the command line:</p>
  
  <p><code>Exception in thread "Awt-EventQueue-0" java.lang.UnsatisfiedLinkError: Cannot find Tensorflow native library for OS: windows, architecture: x86</code></p>
  
  <p>Also, when I click again on the button, an new error is thrown:</p>
  
  <p><code>Exception in thread "Awt-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class org.tensorflow.Tensor</code></p>
  
  <p>Every computer where I have been testing my jar has a recent JRE version at least installed. Some of the pc where the jar is working don't even have Python and/or Tensorflow installed in any way while mine for example has everything correctly installed.</p>
  
  <p>Here is my pom.xml: <a href="https://hastebin.com/oxidunasaw.xml" rel="nofollow noreferrer">https://hastebin.com/oxidunasaw.xml</a></p>
  
  <p>Can you help me figure out what is the problem, and give me solutions in order to make the jar work in every computers? </p>
  
  <p>Thanks for your help.</p>