我使用 QtJambi 编写了一个简单的应用程序,特别是com.trolltech.qt.webkit.QWebView
该类。在 linux 上一切正常,但是当我运行 Win32 版本时,我得到了
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:145)
at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:141)
at com.trolltech.qt.webkit.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:10)
... 4 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\polettid\AppData\Local\Temp\QtJambi_polettid_x86_4.6.3_msvc2005-20100709-1245\bin\QtWebKit4.dll: The specified procedu
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)
... 8 more
有人可以提出一些解决方案吗,我发现的唯一帮助是在旧帖子上,但问题似乎不同。
我使用带有 qtjambi 插件的 maven 构建包:
<plugins>
<plugin>
<groupId>net.sf.qtjambi</groupId>
<artifactId>qtjambi-maven-plugin</artifactId>
<version>4.6.3.1</version>
<executions>
<execution>
<id>qtjambi</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>