Runtime library error for java program on x64 win7? --- use 32Bit Java SDK

Asked by Rahul Misra

Trying the very basic stuff. Compile and run the demo java program on windows 7 64 bit platform. Have followed all the instructions on the website. Program compiles fine but when I run it, I get the following error:

classpath=./sikuli-script.jar;.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\Win32Util.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.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1003)
        at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
        at org.sikuli.script.Win32Util.<clinit>(Win32Util.java:14)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.sikuli.script.Env.getOSUtil(Env.java:84)
        at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:175)
        at org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:288)
        at org.sikuli.script.Screen.initBounds(Screen.java:96)
        at org.sikuli.script.Screen.<init>(Screen.java:108)
        at TestSikuli.main(TestSikuli.java:6)

It seems it does not like the 32bit dll. How do I resolve it? Are there 64bit dll's available for 64 bit platform or there is some work around?

Appreciate all the help!!!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Rahul Misra
Solved:
Last query:
Last reply:
Revision history for this message
Rahul Misra (rmisra) said :
#1

This was resolved when I switched to use 32bit JDK.