Rectangle 27 0

Cause of java.lang.NoSuchMethodError: com.sun.jna.Native.register(LjavalangString;)V?


Im not sure if Im understanding, what do you mean. this is my code pastie.org/9524189, Im think if the interface is not present the desktop java aplication should not work

Im using maven and i have this <dependency> <groupId>net.sourceforge.tess4j</groupId> <artifactId>tess4j</artifactId> <version>1.3.0</version> </dependency> Is the unique version in the maven repository

In the Test API1.class I found this coment /** * A Java wrapper for <code>Tesseract OCR 3.02 API</code> using * <code>JNA Direct Mapping</code>. */ And this is the full error trace pastie.org/9524220

The implementation of your interface is not present or is not at the correct version. Update the implementation version where it has that method implemented.

Yes but there need to be an implementation of that interface. I won't give you an error till you call a method of that interface. In your case com.sun.jna.Native.register is the interface. Most likely this should be its implementation net.sourceforge.tess4j.TessAPI1 check the version of this jar if it is the latest or not...

what is the API version ? Did you just update the version or add it right now ?

Note