在Windows 64位上安装QT Jambi

时间:2012-07-02 09:22:08

标签: windows qt4 64-bit failed-installation qt-jambi

我正在尝试在我的电脑上安装QTJambi,win7 64位。

它不重复:Trouble installing QT Jambi on a Windows 64 bit system因为我的问题是没有加载64 JVM而我已经将JAVA_HOME设置为指向程序文件(x86)文件夹中的32位JDK。

运行qtjambi.bat

我得到以下例外:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.trolltech.qt.QtJambiObject.<clinit>(Unknown Source)
Caused by: java.lang.RuntimeException: Loading library failed, progress so far:
No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.libr
ary.path'
Loading library: 'QtCore4.dll'...
 - using 'java.library.path'

        at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(Unkn
own Source)
        at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(Unknown
Source)
        at com.trolltech.qt.Utilities.loadQtLibrary(Unknown Source)
        at com.trolltech.qt.Utilities.loadQtLibrary(Unknown Source)
        at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(Unknown Source)
        ... 1 more
Caused by: java.lang.UnsatisfiedLinkError: C:\qtjambi-4.7.1\bin\QtCore4.dll: Can
't load IA 32-bit .dll on a AMD 64-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary1(Unknown Source)
        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(Unk
nown Source)
        ... 6 more

嗯,我认为的妙语是:

 Can't load IA 32-bit .dll on a AMD 64-bit platform

我该怎么办?

请帮助详细解答,我正试图在互联网上关注两天的讲解,但没有一个是足够的,现在我甚至无法开始关注QTJambi。

1 个答案:

答案 0 :(得分:1)

你需要使用带有64位Jambi的64位Java和带有32位Jambi的32位Java。 Java二进制文件来自PATH,而不是来自JAVA_HOME,因此请确保该变量包含正确的路径。