java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\VisionProxy.dll: Can't find dependent libraries

Asked by Neo

I read and followed https://answers.launchpad.net/sikuli/+question/166928, but still see the error in eclipse.
Entries in my system path are,
C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Sikuli X\libs

Am I missing anything..?

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
RaiMan (raimund-hocke) said :
#1

Sikuli does not work with Java 7 --- well known issue.

Revision history for this message
Deses (deses12) said :
#2

I only have JRE7u5 x32 installed (and JDK7u5 x32) and Sikuli is working me fine in Netbeans, the only problem is that I can't take screenshots in Sikuli IDE... but I prefer to do the screenshots myself.

Your system path is the same as me, and I don't use Eclipse, so I can't help much. Maybe try Netbeans? hehehe.

Maybe it's dirty, but put all the dlls found in in the same folder where the jar is located.

Revision history for this message
Neo (simamhussain) said :
#3

what eclipse version does sikuli compatible with. I have Eclipse Juno 32-bit version installed. I hope it doesn't matter with the version of Eclipse. Confirm?

Revision history for this message
Neo (simamhussain) said :
#4

I figured it out. Even I have jre (32-bit) in system path, it is picking 64 bit version of jre. I had two version. I figured it out by just running java -version (java was running on 64-bit). Just not sure where it is picked it.

What I have done is, made 32-bit jre path as first entry in my path so that it always use 32-bit. Now when I run from sikuli.Sikuli import * (only line in my .py file) without any error.

Thanks to all for the help.

However, I wanted to know how do I convert my .sikuli scripts to .py scripts.

I have 2 folders (mainScript.sikuli and images.sikuli). The mainscript importing the images and performing the test. How do I convert this into eclipse .py format. The main reason why I want to use eclipse is to debug my program.

Thanks in adv.

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

the .sikuli folder contains the .py - so just edit these.

If you ever want to run a .sikuli again with IDE or using the Sikuli command line features: take care, that the my-script.sikuli is named the same as the contained my-script.py.

If you start using the .py in Eclipse, the you have to take care, from where your images are loaded.
Whenrunning just the .py files using Eclipse/Jython, the utomatic image location of the Sikuli framework does not happen.
Have a look at setBundlePath() (good for one central image folder) or the image path feature if you need more than one image storage.

Revision history for this message
Neo (simamhussain) said :
#6

Can you point me any document reference?, I am not sure I followed you completely. Thanks.

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

The .py case is obvious: just look into a .sikuli folder of an existing script, that you have saved somewhere.

The image stuff can either be found in the docs (http://sikuli.org/docx/globals.html#global-functions-and-features) or in these Q&A board.

If you try out something, that does not do what you want: paste your code and your expectations in a new question.

The docs contain a chapter on Python in Eclipse/Netbeans:
http://sikuli.org/docx/faq/040-other-ide.html#how-to-use-sikuli-together-with-other-ide-s

Revision history for this message
Neo (simamhussain) said :
#8

Thanks RaiMan, that solved my question.