[1.0] Win 7 64: Sikuli throwing error in 32 bit Java - use Sikuli package Win32 or run a 64-Bit Java --- solution

Asked by srijith

----- solution

use the latest version 1.0.1

The generated sikuli-java.jar is useable with all variants of architectures on Windows 7 and switches internally on the fly.

---------------------------------------------------------------

when I try to execute my Sikuli Code in Eclipse , it throws me this error

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\xuser\AppData\Local\Temp\tmplib\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.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.System.load(Unknown Source)
 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(Unknown Source)
 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 HelloWorld.main(HelloWorld.java:19)

I read through some post and found that I need to use Java 32-bit. I installed Java 32-bit and changed the environment paths accordingly.
C:\Program Files (x86)\SikuliX\libs;C:\Program Files (x86)\Java\jdk1.7.0_21\bin

But still its throwing me this error.
I Uninstalled Java 64-bit , but then my eclipse failed to open. SO now I need 64 bit Java for Eclipse and 32-bit Java for Sikuli Script ? If yes, Is that possible ? Please help me on this. How do I do it ? I changed the environment variable to 32 bit for sikuli, what else I have to do ?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

When you want to use a 32-Bit Java on Windows 64-Bit, you have to use the Win32 package.

But with the new version, you can now easily run everything in 64-Bit only.

Just install the Java 64 Bit version and remove all Java related 32-Bit stuff

Revision history for this message
srijith (srijithbhandary) said :
#2

Thanks... I was using old Sikuli JAR file. I replaced with new JAR file and it worked for me.

Revision history for this message
Sergey (sar-mailbox) said :
#3

Can you give link to the new Sikuli JAR File ?
I still have the same problem.

Revision history for this message
srijith (srijithbhandary) said :
#4

you can download the latest sikuli zip and unzip. Im not sure if there is a link just for a jar file.

Revision history for this message
srijith (srijithbhandary) said :
#5

Thanks RaiMan, that solved my question.

Revision history for this message
Sergey (sar-mailbox) said :
#6

HI, srijith (srijithbhandary) can you send me new JAR file ? <email address hidden> or on the skype (revko_sergey).

Revision history for this message
RaiMan (raimund-hocke) said :
#7

The latest version is online and downloadable (sikuli-setup.jar).

If you need offline setup: faq 2363