Dear trolltech team
a question to the temporary library path :
qtjambi unpacks the native libraries in a temporary path, maybe
...\Arne\Lokale
Einstellungen\Temp\QtJambi_Arne_x86_4.4.3_01_msvc2005-20080925-1858
or the equivalent in unix/linux. Due to some coincidence, I did not
really understand, sometimes customers gets a classpath error as
descripted below (on Windows Vista). As far as I understand its a
problem loading the QtCore4.dll from the temp path.
To 'repair' the installation and make my application work, its required
to delete the temporary directory. After that, everythings works fine.
Deleting the path is no problem to me, but a problem for the user. Sadly
a part of our application is a service, which means for that process the
temporary directory is located in the C:\windows dir or the equivalent
unix path.
My question :
a) how to get the temporary directory
b) Is there a way to force qtjambi to use a special temp-dir, regardless
wether it is an user application or a system service
b) would fit best, because it's much more easy for me to deploy a tool
to check the directory and delete it if required.
best regards
Arne
---- begin -------------------------------------------------------#
java.lang.ExceptionInInitializerError
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:57)
at hilfsklassen.MyCalendar.<clinit>(MyCalendar.java:41)
at server.Server.<clinit>(Server.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher$1.run(Unknown Source)
Caused by: java.lang.RuntimeException: Loading library failed, progress
so far:
Unpacking .jar file: 'qtjambi-win32-msvc2005-4.4.3_01.jar'
Checking Archive 'qtjambi-win32-msvc2005-4.4.3_01.jar'
- cache key='msvc2005-20080925-1858'
- adding 'QtCore4.dll' to library map
- library: name='bin/QtCore4.dll',
- adding 'QtGui4.dll' to library map
- library: name='bin/QtGui4.dll',
- adding 'QtXml4.dll' to library map
- library: name='bin/QtXml4.dll',
- adding 'QtSql4.dll' to library map
- library: name='bin/QtSql4.dll',
- adding 'QtSvg4.dll' to library map
- library: name='bin/QtSvg4.dll',
- adding 'QtNetwork4.dll' to library map
- library: name='bin/QtNetwork4.dll',
- adding 'QtOpenGL4.dll' to library map
- library: name='bin/QtOpenGL4.dll',
- adding 'QtWebKit4.dll' to library map
- library: name='bin/QtWebKit4.dll',
- adding 'QtXmlPatterns4.dll' to library map
- library: name='bin/QtXmlPatterns4.dll',
- adding 'phonon4.dll' to library map
- library: name='bin/phonon4.dll',
- library: name='plugins/phonon_backend/phonon_ds94.dll', never load
- library: name='plugins/imageformats/qjpeg4.dll', never load
- library: name='plugins/imageformats/qgif4.dll', never load
- library: name='plugins/imageformats/qmng4.dll', never load
- library: name='plugins/imageformats/qtiff4.dll', never load
- library: name='plugins/imageformats/qsvg4.dll', never load
- library: name='plugins/iconengines/qsvgicon4.dll', never load
- library: name='plugins/codecs/qcncodecs4.dll', never load
- library: name='plugins/codecs/qjpcodecs4.dll', never load
- library: name='plugins/codecs/qkrcodecs4.dll', never load
- library: name='plugins/codecs/qtwcodecs4.dll', never load
- library: name='plugins/accessible/qtaccessiblewidgets4.dll', never load
- library: name='plugins/sqldrivers/qsqlite4.dll', never load
- adding 'qtjambi.dll' to library map
- library: name='bin/qtjambi.dll',
- adding 'com_trolltech_qt_core.dll' to library map
- library: name='bin/com_trolltech_qt_core.dll',
- adding 'com_trolltech_qt_gui.dll' to library map
- library: name='bin/com_trolltech_qt_gui.dll',
- adding 'com_trolltech_qt_xml.dll' to library map
- library: name='bin/com_trolltech_qt_xml.dll',
- adding 'com_trolltech_qt_sql.dll' to library map
- library: name='bin/com_trolltech_qt_sql.dll',
- adding 'com_trolltech_qt_svg.dll' to library map
- library: name='bin/com_trolltech_qt_svg.dll',
- adding 'com_trolltech_qt_network.dll' to library map
- library: name='bin/com_trolltech_qt_network.dll',
- adding 'com_trolltech_qt_opengl.dll' to library map
- library: name='bin/com_trolltech_qt_opengl.dll',
- adding 'com_trolltech_qt_phonon.dll' to library map
- library: name='bin/com_trolltech_qt_phonon.dll',
- adding 'com_trolltech_qt_webkit.dll' to library map
- library: name='bin/com_trolltech_qt_webkit.dll',
- adding 'com_trolltech_qt_xmlpatterns.dll' to library map
- library: name='bin/com_trolltech_qt_xmlpatterns.dll',
- library:
name='plugins/imageformats/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library: name='plugins/imageformats/Microsoft.VC80.CRT/msvcm80.dll',
never load
- library: name='plugins/imageformats/Microsoft.VC80.CRT/msvcp80.dll',
never load
- library: name='plugins/imageformats/Microsoft.VC80.CRT/msvcr80.dll',
never load
- library:
name='plugins/iconengines/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library: name='plugins/iconengines/Microsoft.VC80.CRT/msvcm80.dll',
never load
- library: name='plugins/iconengines/Microsoft.VC80.CRT/msvcp80.dll',
never load
- library: name='plugins/iconengines/Microsoft.VC80.CRT/msvcr80.dll',
never load
- library:
name='plugins/codecs/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library: name='plugins/codecs/Microsoft.VC80.CRT/msvcm80.dll', never
load
- library: name='plugins/codecs/Microsoft.VC80.CRT/msvcp80.dll', never
load
- library: name='plugins/codecs/Microsoft.VC80.CRT/msvcr80.dll', never
load
- library:
name='plugins/phonon_backend/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library:
name='plugins/phonon_backend/Microsoft.VC80.CRT/msvcm80.dll', never load
- library:
name='plugins/phonon_backend/Microsoft.VC80.CRT/msvcp80.dll', never load
- library:
name='plugins/phonon_backend/Microsoft.VC80.CRT/msvcr80.dll', never load
- library: name='bin/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library: name='bin/Microsoft.VC80.CRT/msvcm80.dll', never load
- library: name='bin/Microsoft.VC80.CRT/msvcp80.dll', never load
- library: name='bin/Microsoft.VC80.CRT/msvcr80.dll', never load
- library:
name='plugins/accessible/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library: name='plugins/accessible/Microsoft.VC80.CRT/msvcm80.dll',
never load
- library: name='plugins/accessible/Microsoft.VC80.CRT/msvcp80.dll',
never load
- library: name='plugins/accessible/Microsoft.VC80.CRT/msvcr80.dll',
never load
- library:
name='plugins/sqldrivers/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest',
never load
- library: name='plugins/sqldrivers/Microsoft.VC80.CRT/msvcm80.dll',
never load
- library: name='plugins/sqldrivers/Microsoft.VC80.CRT/msvcp80.dll',
never load
- library: name='plugins/sqldrivers/Microsoft.VC80.CRT/msvcr80.dll',
never load
- plugin path='plugins'
- using cache directory:
'C:\Windows\TEMP\QtJambi_FIREHORN$_x86_4.4.3_01_msvc2005-20080925-1858'
- cache directory exists
Loading library: 'QtCore4.dll'...
- using deployment spec
at
com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:428)
at
com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:352)
at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:137)
at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:133)
at
com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:53)
... 9 more
Caused by: java.lang.UnsatisfiedLinkError: Can't load library:
C:\Windows\TEMP\QtJambi_FIREHORN$_x86_4.4.3_01_msvc2005-20080925-1858\bin\QtCore4.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.Runtime.load(Unknown Source)
at
com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:455)
at
com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:423)
... 13 more
---- end --------------------------------------------------------#
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest