Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [SOLVED]Qt with JAVA
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Qt with JAVA

Scheduled Pinned Locked Moved Solved Language Bindings
14 Posts 8 Posters 9.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @Tejas-Virpariya said:
    Hi
    Qt Jambi is a binding for Qt.
    Without such binding. its is not possible.
    So to use Qt from java, u need such binding.

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #3

      @Tejas-Virpariya
      Is this the same post http://forum.qt.io/topic/63784/qt-jambi ?

      --Alles ist gut.

      T 1 Reply Last reply
      0
      • jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        "I want to access/use java code in Qt" - what do you mean by this? Qt is a C++ framework, not a programming language. Do you want to access Java code from C++ or do you want to use Qt in Java?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        T 1 Reply Last reply
        0
        • E Offline
          E Offline
          eureka
          wrote on last edited by
          #5

          I bookmarked this old thread (for future reference) which writes that QProcess can be used to run java app

          http://www.qtcentre.org/threads/57116-SOLVED-QProcess-Java-Application-Not-Working

          jsulmJ 1 Reply Last reply
          1
          • E eureka

            I bookmarked this old thread (for future reference) which writes that QProcess can be used to run java app

            http://www.qtcentre.org/threads/57116-SOLVED-QProcess-Java-Application-Not-Working

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @eureka Sure, you can use QProcess to run an Java application. But the topic of this thread is not related to external processes.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • jacmoeJ Offline
              jacmoeJ Offline
              jacmoe
              wrote on last edited by
              #7

              You can't mix those languages.
              Because C++ is native and Java is run in a virtual machine.

              Less noise - more signal

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @jacmoe That's the goal of QtJambi: provide Java binding for Qt.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                jacmoeJ 1 Reply Last reply
                1
                • SGaistS SGaist

                  @jacmoe That's the goal of QtJambi: provide Java binding for Qt.

                  jacmoeJ Offline
                  jacmoeJ Offline
                  jacmoe
                  wrote on last edited by
                  #9

                  @SGaist Yes, I know :)
                  And I also know that you can use JNI - but the way that I understand the OP is that he wants to just drop a java file and expect Qt (QtCreator? or C++?) to handle it automatically.
                  QtJambi is pretty cool if you want a great library like Qt and use Java as a language. :)

                  Less noise - more signal

                  1 Reply Last reply
                  0
                  • RatzzR Ratzz

                    @Tejas-Virpariya
                    Is this the same post http://forum.qt.io/topic/63784/qt-jambi ?

                    T Offline
                    T Offline
                    Tejas Virpariya
                    wrote on last edited by
                    #10

                    @Ratzz : First I try to use java code in QT with help of Qt Jambi, but didn't get help how to use Qt Jambi, So I try to find other way to use Java class or file in Qt/C++. That's way I ask this question.

                    -Thanks
                    Tejas Patel

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      "I want to access/use java code in Qt" - what do you mean by this? Qt is a C++ framework, not a programming language. Do you want to access Java code from C++ or do you want to use Qt in Java?

                      T Offline
                      T Offline
                      Tejas Virpariya
                      wrote on last edited by
                      #11

                      @jsulm : I want to access Java code from C++. If I added java file in my normal QT/C++ project then How can I get access java code from main.cpp file?

                      -Thanks
                      Tejas Patel

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        You can't do that, it's the other way around: you write java code that will make use of Qt Jambi bindings to use Qt.

                        As for examples, you have examples there on the QtJambi web site.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          Tejas Virpariya
                          wrote on last edited by
                          #13

                          Finally decide to drop this topic. Use C++ with QT.

                          -Thanks
                          Tejas Patel

                          1 Reply Last reply
                          0
                          • Ni.SumiN Offline
                            Ni.SumiN Offline
                            Ni.Sumi
                            wrote on last edited by
                            #14

                            Hi @Tejas-Virpariya ,

                            Marking "solved" can be done from the option at the right bottom , you can see the "Topic Tools" and there opt for "Marked Solved ".

                            1 Reply Last reply
                            1

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved