users@glassfish.java.net

Swing client runned from glassfish ACC with tess4j issues

From: <forums_at_java.net>
Date: Thu, 21 Feb 2013 03:03:48 -0600 (CST)

Dear all, I have an enterprise project, in which I read characters from
camera and compare them to records in the database. In the project is a swing
client runned from glassfish server using web start (ACC) and this client
uses tess4j library for reading chars from images. Tess4j uses JNA as an
interface to native tesseract libraries. My trouble is, that everything is
working great, when I run the project from Netbeans (or locally), but when I
run client from browser (jws), I've got this error :
java.lang.UnsatisfiedLinkError: Can't obtain static method initializeThread
from class com.sun.jna.CallbackReference. I've found in a forum a similar
question and the problem was in different version of jna, but this is not my
case, I'm using the same version (from tess4j) everywhere. Also, I've done an
experiment - I've found all necessary libraries in jws cache, put them
together into one folder and run the client's jar. And it has worked. So
downloaded files are correct, only jws cannot run them in the correct way...
Has anybody experience with JNA and jws client? My env: Windows 7, Java
1.6.38 32bit, Netbeans 7.2.1, Glassfish 3.1.2.2 Thank you for any help.
Michal

--
[Message sent by forum member 'anaq']
View Post: http://forums.java.net/node/894891