why are the Qt people at fault here?
If anything, the Jambi people are to blamem but i wouldn’t be harsh with them.
Likely .jui files used to have other differences, but newer versions of Jambi got changed so that they work with almost regular .ui files.
Search Criteria
Package Details: qtjambi-git 4070.3952b53-3
Package Actions
| Package Base: | qtjambi-git |
|---|---|
| Description: | Java bindings for the Qt C++ toolkit. |
| Upstream URL: | http://qt-jambi.org/ |
| Category: | lib |
| Licenses: | |
| Conflicts: | |
| Provides: | |
| Submitter: | philacs |
| Maintainer: | flying-sheep |
| Last Packager: | flying-sheep |
| Votes: | 0 |
| First Submitted: | 2011-09-29 03:58 |
| Last Updated: | 2014-10-14 14:14 |
Dependencies (5)
- java-environment>=6
- qt4>=4.8.6
- apache-ant (make)
- phonon (make)
- wget (make)
Required by (0)
Sources
- build.properties.patch
- git://git.smar.fi/qtjambi-community.git
- webkit.patch
Latest Comments
Comment by flying-sheep
Comment by lyoneel
Ugly design a tag change everything, QT People are incredible...
Thanks a lot flying.
Comment by flying-sheep
no problem! glad it works for you, even if it isn’t perfect.
however, there’s another way that doesn’t require all this. simply create regular .ui files and add language="jambi", there isn’t more difference…
for ui_file in *.ui; do
sed 's/<ui version="4.0"/& language="jambi"/' "$ui_file" >"${ui_file%.ui}.jui"
#rm $ui_file
done
see here: http://stackoverflow.com/questions/5774663/how-to-convert-ui-file-to-jui-file
Comment by lyoneel
Well, with this command:
JAVA_HOME=/usr/lib/jvm/default CLASSPATH=/usr/share/java/qtjambi-designer-4.8.6.jar:/usr/share/java/qtjambi-4.8.6.jar LD_LIBRARY_PATH=/usr/lib:/usr/lib/jni designer-qt4
designer-qt4 throw a lot of errors, i dont do intensive test, just a basic dialog, but seems to work, now i can save in JUI format file from designer-qt4 and juic can compile it.
If i encounter more issues ill tell you, Is not perfect, but works, thanks again for fast reply.
Comment by flying-sheep
i installed it, but other errors occur, like mentioned in http://redmine.smar.fi/issues/254
does it work for you?
Comment by flying-sheep
i got further:
with this command line:
JAVA_HOME=/usr/lib/jvm/default CLASSPATH=/usr/share/java/qtjambi-designer-4.8.6.jar:/usr/share/java/qtjambi-4.8.6.jar LD_LIBRARY_PATH=/usr/lib:/usr/lib/jni designer-qt4
i found out that i didn’t package libcom_trolltech_tools_designer.so.1
i need to install it from build/qmake-qtjambi/lib/libcom_trolltech_tools_designer.so.1
Comment by lyoneel
Well i found new clue about it, thats why cant save in "jambi" form and cant compile with juic
What IDK if this designer (designer-qt4) is the correct, qt jambi says they come with your own designer.
Output of designer-qt4
QtJambi: Exception pending in native code in file ../../../../src/cpp/designer-integration/customwidget/jambicustomwidget.cpp:279
java.lang.NoClassDefFoundError: com/trolltech/tools/designer/CustomWidgetManager
Caused by: java.lang.ClassNotFoundException: com.trolltech.tools.designer.CustomWidgetManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
QtJambi: Exception pending in native code (detected at)
QtJambi: Exception pending in native code in file ../../../src/cpp/qtjambi/qtjambi_utils.cpp:60
java.lang.NoClassDefFoundError: com/trolltech/tools/designer/ResourceBrowser
Caused by: java.lang.ClassNotFoundException: com.trolltech.tools.designer.ResourceBrowser
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
QtJambi: Exception pending in native code (detected at)
Qt Jambi: Cannot load JambiLanguagePlugin due to missing class files
__
Comment by lyoneel
Ty for fast reply.
Now juic is right there, and yes designer is not complaing about plugins but IDK whats the difference between jambi libs in designer and without it.
Im getting started with jambi, thanks a lot.
Comment by flying-sheep
updated, but the plugins don’t seem to contain any widgets. do i miss even more necessary files?
Comment by flying-sheep
if you go to Help→Plugins, it tells you that it fails to load those because libqtjambi.so.1 is missing.
i install that to /usr/lib/jni/, and apparently it needs to be in /usr/lib/
i don’t know however if it needs to be in /usr/lib/jni as well, so i’m just creating a symbolic link /usr/lib/libqtjambi.so.1 → jni/libqtjambi.so.1
juic i forgot, but i’ll include it momentarily
Comment by lyoneel
libs works correct, but i have issues with designer-qt4 it fails to load libJambi*, i fix some permissions same permissions as other plugins (-rwxr-xr-x) with no luck and nothing in google.
IDK if really is your issue.
and where is JUIC?
Comment by flying-sheep
fixed.
Comment by flying-sheep
i don’t know how to fix the following error:
build.xml:101: ERROR: qtjambi.core or qtjambi.core.debug property is not configured
Comment by flying-sheep
well, it does work, but only if you add both /usr/lib and /usr/lib/jni to the library path.
head to https://github.com/flying-sheep/qtjambi-git-pkgbuild/issues/1 if you can help