Home:ALL Converter>Using JNI with Qt

Using JNI with Qt

Ask Time:2016-05-22T16:54:42         Author:SR_

Json Formatter

There is, with Qt 5.6, a simple way to call Java methods in a Qt application : Android extras. As one may guess, this simple way is limited to the Android platform.

Is there a way to write my application such as it is multiplatform(1) and can use JNI calls to Java methods ? Moreover, is there a simple way ? I mean Android extras provides an environment and an API that let me concentrate on coding what my application do. I do not waste time in looking for a way to interface both native and JVM worlds, trying to solve platform dependent problems.

There has been a similar question asked : How can I deploy a mixed C++/Java (JNI) application?

(1) By multiplatform, I mean IOS, Linux, Windows in addition to Android.

Author:SR_,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37372347/using-jni-with-qt
yy