title: Cause of java.lang.NoSuchMethodError: com.sun.jna.Native.register(Ljava/lang/String;)V
body: <p>I have a java aplication and I´m moving to dynamic web projet.</p>
  
  <p>The desktop application works fine, but in the dynamic web project I´m getting this error:</p>
  
  <pre><code> java.lang.NoSuchMethodError: com.sun.jna.Native.register(Ljava/lang/String;)V
   at net.sourceforge.tess4j.TessAPI1.&lt;clinit&gt;(TessAPI1.java:44)
  </code></pre>
  
  <p>The line 44 in the <code>TessAPI1</code> library is  </p>
  
  <p><code>Native.register(WINDOWS ? LIB_NAME : LIB_NAME_NON_WIN);</code></p>
  
  <p>what is the possible cause of this error?</p>