Is it possible to call java function from Qt Application and if so, how? Do I need to update java source for such task? I have Qt Desktop Opensource edition.
First of all think twice before calling java from C/C++. For Android it allow you call some API function of OS, but you pay with perfomance and some hard catching errors.
Qt designed pretty easy way for calling Java: package - androidextra But if you need call it on desktop there is a way to avoid it: JNI(as Nejat says).
Here is simple example of using it: http://www.codeproject.com/Articles/22881/How-to-Call-Java-Functions-from-C-Using-JNI
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.