[Qt-interest] calling Qt based library from Java

Michael S msherman77 at yahoo.com
Mon Aug 30 15:56:14 CEST 2010


Good morning all,

I have a question regarding Java and Qt. I created a library that exports several functions, they have to manipulate images. When called from C/C++ code, no problems. However the client uses Java and we wrote a Java wrapper which calls the exported functions via JNI. 

When java code calls the DLL, the library fails to load jpeg and tiff images. It used to happen before with C, but now that I have the imageformats directory with all the necessary plug-ins, it works perfectly.
I am using Qt 4.6.3, dynamic loading. Running on SUSE Linux.

It might be more of a Java question, but maybe someone on this list had a similar issue.

Thanks in advance.
Michael



More information about the Qt-interest-old mailing list