Java in Qt
I want to have java classes in my Qt project and I want to be able to call java methods from c++ code. Already installed JDK and configured it. If you know of any articles/tutorials on the topic, please list them.
How to set up Qt to integrate java? And how to call java code from c++?
Do you mean something like QtJambi ?
Qt/Java also gives programmers the ability to easily bind their own native code to Java. This is done using the Qt/Java Generator, which reads the code of an existing C++ library and generates a Java API which binds into the library.
I hope I understood the statement correctly. I'm looking for a way to call java code from c++ function not to call c++ code from java.
Sorry, I misread your post. Then JNI is your friend. Which platform are you targeting ?
This library looks good as well: https://github.com/MSardelich/CJay
Found by simply typing "call java from c++" into Google