Hi,
On 21.05.2010, at 13:12, [email protected] wrote:

> This is known problem with Jambi, I’ve been fixing it, but so far I haven’t 
> had time to actually fix it...
> 
> There is a workaround though:
> 
> Take XmlPatterns and maybe Xml dlls out from the archive to the workdir of 
> your application and for Win7(maybe Vista too) exporting two of the MSVC DLLs 
> are needed too...
> 
> In addition of nativelib, I deploy QtXmlPatterns4.dll msvcr80.dll msvcp80.dll 
> Microsoft.VC80.CRT.manifest too in order to get it to work.
> 
> Adding library loaders to the jambi/your program could help too, but I’m not 
> too sure what to include.

Adding QtXMLPatterns4.dll to windows/system32 makes it works ! 

Thanks,

Regards,

Clement



> -- 
> Terveisin
> Samu Voutilainen
> SLM Finland Oy
> 
> Clement Escoffier kirjoitti perjantai 21 toukokuu 2010 13:56:25:
>> Hello,
>> 
>> We have issues with using Webkit (QWebView) in QTJambi 4.6.0 and 4.6.2 on 
>> Vista and 7. The application works fine on Linux and Mac, but failed on 
>> windows (it worked with QTJambi-4.5.x on Windows).
>> According to the stack trace, it sounds like a dependency is missing. We're 
>> currently using the qtjambi jar, the jar containing the libraries and the 
>> util jar. Is there an other jar to add to the classpath on Windows ?
>> 
>> Here is the stack trace:
>> java.lang.ExceptionInInitializerError
>>              at com.trolltech.qt.webkit.QWebView.<clinit>(QWebView.java:11)
>> ...
>> Caused by: java.lang.RuntimeException: Loading library failed, progress so 
>> far:
>> Unpacking .jar file: 'qtjambi-win32-msvc2005-4.6.2.jar'
>> Checking Archive 'qtjambi-win32-msvc2005-4.6.2.jar'
>> - cache key='msvc2005-20100218-1827'
>> - 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:\Users\clement\AppData\Local\Temp\QtJambi_clement_x86_4.6.2_msvc2005-20100218-1827'
>> - cache directory exists
>> Loading library: 'QtCore4.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'qtjambi.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'QtCore4.dll'...
>> - already loaded, skipping...
>> Loading library: 'com_trolltech_qt_core.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'QtGui4.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'com_trolltech_qt_gui.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'QtGui4.dll'...
>> - already loaded, skipping...
>> Loading library: 'QtNetwork4.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'phonon4.dll'...
>> - using deployment spec
>> - ok!
>> Loading library: 'QtWebKit4.dll'...
>> - using deployment spec
>> 
>>      at 
>> com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:431)
>>      at 
>> com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:355)
>>      at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:44)
>>      at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:40)
>>      at 
>> com.trolltech.qt.webkit.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:10)
>>      ... 18 more
>> Caused by: java.lang.UnsatisfiedLinkError: 
>> C:\Users\clement\AppData\Local\Temp\QtJambi_clement_x86_4.6.2_msvc2005-20100218-1827\bin\QtWebKit4.dll:
>>  Can't find dependent libraries
>>      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>>      at java.lang.ClassLoader.loadLibrary0(Unknown Source)
>>      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:458)
>>      at 
>> com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:426)
>>      ... 22 more
>> 
>> Regards,
>> 
>> Clement
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Qt-jambi-interest mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>> 
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest


_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to