← Back to team overview

sikuli-driver team mailing list archive

[Question #202382]: (Chinese (Simplified)) met Win32Util.dll: %1 is not a valid Win32 application issue when I use the sikuli-script.jar in java applicaiton on win7 64bit compute.

 

A question was asked in a language (Chinese (Simplified)) spoken by
none of the registered Sikuli answer contacts.

https://answers.launchpad.net/sikuli/+question/202382

I want use sikuli java api to simulate manual option in the web app.
My simple example is:

Screen screen = new Screen();
screen.rightClick("images/test.png");

I run it in win7 32bit OS, it is ok and can execute right click action.
but I run it in win7 64 bit OS, I met the error message as below.

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\Win32Util.dll: %1 is not a valid Win32 application
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
	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:19)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at org.sikuli.script.Env.getOSUtil(Env.java:91)
	at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)
	at org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:293)
	at org.sikuli.script.Screen.initBounds(Screen.java:105)
	at org.sikuli.script.Screen.<init>(Screen.java:117)
	at com.micro.tests.example.TestCheckbox.doSometing(TestCheckbox.java:38)
	at com.micro.tests.example.TestCheckbox.main(TestCheckbox.java:73)

Could you help me fixed it?

My JDK version :
>java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) Client VM (build 20.8-b03, mixed mode, sharing)


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