sara
sara

Reputation: 3934

Installing QT Jambi on a Windows 64 bit

I'm trying to install QTJambi on my computer, win7 64 bit.

It is not duplicate to: Trouble installing QT Jambi on a Windows 64 bit system since my problem is not loading the 64 JVM and I have setted JAVA_HOME to point to the 32 bit JDK that is in Program files (x86) folder.

When running the qtjambi.bat

I get the exception below:

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

Well, the punch line I think is:

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

What can I do?

Please help with detailed answer, I'm trying to follow insrtructions in teh internet for twoo days, but none is detalied enoughm and currently I cannot even start to look at the QTJambi.

Upvotes: 2

Views: 3083

Answers (1)

Smar
Smar

Reputation: 8611

You need to use 64 bit Java with 64 bit Jambi and 32 bit Java with 32 bit Jambi. The Java binary is taken from PATH, not from JAVA_HOME, so please ensure that variable contains correct path.

Upvotes: 1

Related Questions