← Back to team overview

sikuli-driver team mailing list archive

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

 

Question #229460 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/229460

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

Description changed to:
----- 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 ?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.