[SOLVED]Qt Jambi



  • [SOLVED]Can we write java code on Qt? If yes then How? what is Qt Jambi? is it for Qt?


  • Moderators

    Hi!
    If you search for Qt Jambi then you will find this: http://qtjambi.org/
    As explained there it allows you to use Qt in Java applications.
    If you want to know how you should first look at that page for documentation and tutorials.



  • Thanks jsulm, I want to use java programming on Qt, but didn't get documentation for this. I refereed http://qtjambi.org/. I could not get which I want. I want step by step documentation for how can I write java code on Qt? If you have any idea please share with me.

    Qt jambi documentation says that It provide qt library for java development, means we can use qt feature with Eclipse or net-beans, but it doesn't say that I can write java code on Qt. That''s way I want to conform that I am write or wrong? I think we cannot write java code on Qt? am I right?


  • Moderators

    http://qtjambi.org/:
    "Qt Jambi is the Qt library made available to Java. It is an open source technology aimed at all desktop programmers wanting to write rich GUI clients using the Java language, while at the same time taking advantage of Qt’s power and efficiency." - so, you can write Java code which uses Qt.

    Check this example: http://qtjambi.org/examples/analog_clock
    There they do exactly this: they write Java code which uses Qt for UI.

    What do you mean with "we can use qt feature with Eclipse or net-beans"? You can use Qt with Java using Qt Jambi using any Java IDE or even a simple text editor. QtJambi is Java language binding for Qt, like PyQt is a language binding for Python programming language to use Qt in Python.



  • Thanks jsulm, but still confusing, I downloaded Qt 5.4.2 and Qt creator 3.4.1, then download Qt Jambi 4.8.7, which have different Executable jar files and three folder bin, lib and plugins. Now tell me what I have to do to make new project which support JAVA on Qt? On Qt which project I have to make?

    we can use qt feature with Eclipse or net-beans, means we can add qt jambi as library in java ide and we can access feature of qt ui in java ide.

    Simple what I want, when we make new project in Qt then we get by default .cpp file inplace I want java class, so I can start edit in project easily. Currently what happen, when I start new project in Qt then I get only .cpp file and I cannot code on java. so I want simple .java to add java code.

    Can you help me to go step by step to get java support on Qt? and how to make a project in QT based on java?

    Thanks again..



  • You need to be using Eclipse !!

    Get the Eclipse QTJambi integration plugin here : http://qtjambi.org/doc/eclipseintegration

    The Qt project has nothing to do with QtJambi I think. ;)



  • Thanks jacmoe, I have same doubt, "The Qt project has nothing to do with QtJambi I think. ;)", I need surely answer related to this, because I have to give pure report to our head department, so I cannot take any risk.

    Thanks again jacmoe, please can you conform this information? its real helpful for me.
    I passed more than two days only to search, how can I use Qt Jambi with Qt?



  • You can check the project at Github : https://github.com/qtjambi/qtjambi

    It doesn't look too bad, to be honest.
    It depends on whether or not you need to be using Qt 5.x.
    Edit: Qt 4.8 is rock solid. No problems there. And the project is not dead, not at all.

    If Java is important to you and you would like to use Qt with it, then QtJambi is what you ought to be using.
    It actually looks like Qtjambi is one of the most developed language bindings for Qt, but I could be wrong.
    I would have no issues using QtJambi myself, provided that I needed it :)



  • Thanks jacmoe, are you using Qt Jambi with eclipse? or with Qt? If you use Qt jambi with qt or you have knowledge about it, please share with me.


  • Moderators

    @Tejas-Virpariya said:

    Thanks jacmoe, I have same doubt, "The Qt project has nothing to do with QtJambi I think. ;)", I need surely answer related to this, because I have to give pure report to our head department, so I cannot take any risk.

    The Qt Project provides C++ libraries.

    Qt Jambi is a separate project. It provides Qt bindings for Java, so that you can use Qt in Java code.



  • Keep in mind that Qt 4 has reached its end of life last december.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.