Where can I get sample qtjambi-deployment.xml?
-
Hi!
Could anyone paste or link me sample qtjambi-deployment.xml? I want to run QT in java but it says:
java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:55) at com.trolltech.qt.internal.QtJambiObject.<clinit>(QtJambiObject.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:8) at com.trolltech.qt.core.QObject.<clinit>(QObject.java:13) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.gui.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:8) at com.trolltech.qt.gui.QWidget.<clinit>(QWidget.java:18) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more Exception in thread "main" java.lang.UnsatisfiedLinkError: com.trolltech.qt.internal.HelperFunctions.setAsMainThread()V at com.trolltech.qt.internal.HelperFunctions.setAsMainThread(Native Method) at com.trolltech.qt.gui.QApplication.initialize(QApplication.java:521) at HelloWebKit.main(HelloWebKit.java:143) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Process finished with exit code 1
I am trying to use QT with java, and found found qtjambi, but the problem is that all examples are insufficient. First I had to fix the example myselt to get it compile at all. Second, they are not giving out example as projects but only as single java file which is insufficient for beginners who see qtjambi for first time to get it running.
Right now, this is the example I am trying to run: https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/qtjambi-hellowebkit.html
Also how do I correctly use qtjambi? Right now I just extracted it to my project directory and told IDE to use these JARs but I am not sure if this is the right way.
-
Hi! I've found the following here:
<qtjambi-deploy system="linux64"> <cache key="gcc-20121008-0052"/> <!-- Qt libraries --> <library name="libconcise_DynGenPar.so.1"/> </qtjambi-deploy>
-
I still got error. I tried to run this example: https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/qtjambi-hellowebkit-code.html
I put your file to root folder of project (same where I have pom.xml and src directory.) Is this right place? Or what would you do with the following error?
/usr/lib/jvm/java-8-oracle/bin/java -Djava.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/rain/idea-IU/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/rain/jthesis/target/classes:/home/rain/jthesis/qtjambi-4.8.7.jar:/home/rain/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-csv/2.7.0/jackson-dataformat-csv-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.0/jackson-core-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.0/jackson-databind-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar:/home/rain/.m2/repository/org/projectlombok/lombok/1.16.6/lombok-1.16.6.jar:/home/rain/.m2/repository/info/cukes/gherkin/2.12.2/gherkin-2.12.2.jar:/home/rain/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/rain/idea-IU/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain HelloWebKit java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:55) at com.trolltech.qt.internal.QtJambiObject.<clinit>(QtJambiObject.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:8) at com.trolltech.qt.core.QObject.<clinit>(QObject.java:13) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.gui.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:8) at com.trolltech.qt.gui.QWidget.<clinit>(QWidget.java:18) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more 64 /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/rain/jthesis/target/classes:/home/rain/jthesis/qtjambi-4.8.7.jar:/home/rain/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-csv/2.7.0/jackson-dataformat-csv-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.0/jackson-core-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.0/jackson-databind-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar:/home/rain/.m2/repository/org/projectlombok/lombok/1.16.6/lombok-1.16.6.jar:/home/rain/.m2/repository/info/cukes/gherkin/2.12.2/gherkin-2.12.2.jar:/home/rain/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/rain/idea-IU/lib/idea_rt.jar Process finished with exit code 0