java - QtJambi 4.6.3.2 Windows 7

标签 java windows-7 java-native-interface qt-jambi

我使用 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

有人可以提出一些解决方案吗,我找到的唯一帮助是旧的 post但问题似乎有所不同。

我使用 maven 和 qtjambi 插件构建包:

             <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>

最佳答案

我找到了解决方案:

我从http://qt-jambi.org/downloads下载了window包并解压它。 然后,我将包含 ddls 的未打包 zip 内的 lib 目录添加到 PATH 环境变量中。

现在一切正常。

关于java - QtJambi 4.6.3.2 Windows 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23399046/

相关文章:

java - 使用 GWT 上传和下载文件

c# - OnPaint 事件接​​二连三

java - 从 native 代码分派(dispatch)的 pthread 可以回调到 JNI 吗?

ruby-on-rails - Ruby 解释器 (CUI) 1.9.2p180 [i386-mingw32] 已停止工作(我没有使用 MySQL)

java - 使用 FFMpeg 将 BGR BufferedImage 快速转换为 YUV

java - 从 Visual Studio 外部创建 JVM 崩溃

java - Eclipse 中的 OSGi 声明式服务、多个服务接口(interface)和线程安全

java - Android Java 正则表达式替换重复模式如图所示

java - 如果 System s = null 那么下面的输出是什么

powershell - vagrant 错误此主机上的 powershell 版本低于要求