Qt-jambi-interest Archive, February 2007
Nothing works with java 6, unable to use eclipse integration with java 5
Message 1 in thread
Hi,
this is my setup:
jdk1.6.0 / jdk1.5.0_09
Eclipse 3.2.1 (with no other plugins than qtjambi integration)
Kubuntu Edgy 6.10
qtjambi-linux-1.0.0-beta
LD_LIBRARY_PATH contains QT_JAMBI_HOME/lib
PATH contains QT_JAMBI_HOME/bin
Java 6
Running qtjambi.sh:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary()V
at com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary(Native
Method)
at com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:10)
at com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngineHandler.java:43)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:26)
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:27)
Running designer.sh:
Jambi: failed to load: '/jre/lib/i386//client/libjvm.so'
Segmentation fault
Setting JAVADIR=JAVA_HOME produces this output:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x080e796a, pid=16199, tid=3066173104
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
# Problematic frame:
# C [designer+0x9f96a] _ZTI7QWidget+0x2
#
# An error report file with more information is saved as hs_err_pid16199.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
Eclipse integration when opening a .jui file:
/usr/bin/java: symbol lookup error:
/usr/local/eclipse-3.2.1-qtj/plugins/com.trolltech.qtdesigner.linux.x86_0.0.4/lib/libqtdesigner.so:
undefined symbol:
_ZN20QEventDispatcherGlibC2EP13_GMainContextP7QObject
Switching to java 5 I can run qtjambi.sh. designer.sh produces the
same error, and the eclipse integration produces this log:
java.lang.UnsatisfiedLinkError:
/usr/local/eclipse-3.2.1-qtj/plugins/com.trolltech.qtdesigner.linux.x86_0.0.4/lib/libqtdesigner.so:
/usr/local/eclipse-3.2.1-qtj/plugins/com.trolltech.qtdesigner.linux.x86_0.0.4/lib/libqtdesigner.so:
undefined symbol:
_ZN20QEventDispatcherGlibC2EP13_GMainContextP7QObject
*chopped*
java.lang.RuntimeException: Widget disposed too early!
*chopped*
java.lang.NullPointerException
*chopped*
Setting JAVADIR=JAVA_HOME makes designer.sh work.
Regards
Trond Gjølstad Ziarkowski
Message 2 in thread
Hi, Trond.
Trond Gjølstad Ziarkowski wrote:
> Setting JAVADIR=JAVA_HOME produces this output:
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> # SIGSEGV (0xb) at pc=0x080e796a, pid=16199, tid=3066173104
> #
> # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
> # Problematic frame:
> # C [designer+0x9f96a] _ZTI7QWidget+0x2
> #
> # An error report file with more information is saved as
> hs_err_pid16199.log
> #
> # If you would like to submit a bug report, please visit:
> # http://java.sun.com/webapps/bugreport/crash.jsp
> #
> Aborted
Thank you for the report. I'll look into this to see if I can reproduce
it. If you had the time to e-mail me the file hs_err_pid16199.log, this
would be very helpful :-)
>
>
> Eclipse integration when opening a .jui file:
> /usr/bin/java: symbol lookup error:
> /usr/local/eclipse-3.2.1-qtj/plugins/com.trolltech.qtdesigner.linux.x86_0.0.4/lib/libqtdesigner.so:
>
> undefined symbol:
> _ZN20QEventDispatcherGlibC2EP13_GMainContextP7QObject
This indicates that the Eclipse Integration is loading a set of Qt
libraries with which it is not compatible. Does any entry in your
LD_LIBRARY_PATH contain Qt libs that may override the ones that are
bundled with Qt Jambi?
-- Eskil