Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Application output : "Starting java" ??



  • When I link the Tesseract library to my project unknown message is output.

    source code is very simple.

    main.cpp

    #include <QApplication>
    #include <QDebug>
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
        qDebug() << "This code will not run.";
        return app.exec();
    }
    

    *.pro

    QT += quick core gui multimedia
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    CONFIG += c++11
    
    DEFINES += QT_DEPRECATED_WARNINGS
    
    SOURCES += \
            main.cpp
    
    RESOURCES += qml.qrc
    
    QML_IMPORT_PATH =
    QML_DESIGNER_IMPORT_PATH =
    
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    
    INCLUDEPATH+=C:/msys64/mingw32/include/tesseract
    LIBS += -LC:/msys64/mingw32/lib\
            -ltesseract
    

    When I run it, my source code doesn't run and I get a strange message.
    Application output

    12:47:02: Starting C:\Users\KJM96\OneDrive\QTProject\build-OpenCVTest-Desktop_Qt_5_12_5_MinGW_32_bit-Release\release\OpenCVTest.exe ...
    Starting java -Xms512m -Xmx1024m -Djava.library.path=. -jar ./ScrollView.jar
    ScrollView: Waiting for server...
    ScrollView: Waiting for server...
    ScrollView: Waiting for server...
    

    Any ideas on this problem?


  • Lifetime Qt Champion

    @Kycho I suggest to ask the Tesseract project as they should know better.


Log in to reply