Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I'm trying to run a c++ library from a java program. I've loaded it, defined the methods... everithing works ok.
Then I decided to move the dll(static{loadlibrary()}) to a Runnable class, in order to make it work in a separate thread (a printing server called from the main application).
Well... does'nt work. The library is loaded, but when I try to access to the methods I got a "unsatisfied link" error (normally that happens when you cannot access to the library).
Note: The library, definitions, code, etc are the same that was working in the main application... can be some multi-thread error? The library links are lost when you send the thread to the "sleeping" pool calling wait()?
Some ideas?
Thanks
I'm trying to run a c++ library from a java program. I've loaded it, defined the methods... everithing works ok.
Then I decided to move the dll(static{loadlibrary()}) to a Runnable class, in order to make it work in a separate thread (a printing server called from the main application).
Well... does'nt work. The library is loaded, but when I try to access to the methods I got a "unsatisfied link" error (normally that happens when you cannot access to the library).
Note: The library, definitions, code, etc are the same that was working in the main application... can be some multi-thread error? The library links are lost when you send the thread to the "sleeping" pool calling wait()?
Some ideas?
Thanks