sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12127
[Question #204177]: Sikuli-Script doesn't find the files in Netbeans
New question #204177 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204177
Well, let's get started with the problems! :D
Sikuli basically don't find the files that has to use... I'm pretty sure that I am doing this right, but it just don't want to work. :(
Let's see, I've created a new project in Netbeans, added the library "Sikuli", who contains sikuli-script.jar and created a main class with the following code:
package deses.test;
import org.sikuli.script.*;
public class SikuliTestMain {
private static final Pattern TEST = new Pattern("test.png");
public static void main(final String[] args) {
final Screen s = new Screen();
try {
s.find(TEST);
} catch (FindFailed e) {
e.printStackTrace();
}
}
}
The image test.png is in the same folder of the .java file.
And this is the exception:
[info] Windows utilities loaded.
[info] Sikuli vision engine loaded.
FindFailed: File test.png not exists
Line ?, in File ?
at org.sikuli.script.Region.wait(Region.java:501)
at org.sikuli.script.Region.find(Region.java:381)
at deses.test.SikuliTestMain.main(SikuliTestMain.java:13)
BUILD SUCCESSFUL (total time: 2 seconds)
A screenshot of the whole thing:
http://i.imgur.com/qSmf7.png
And this is test.png:
http://i.imgur.com/SabHU.png
Some random data:
Windows 7 x64
Netbeans 7.1.2 configured to use JDK6
JRE 6u33 x86/x64 installed
JRE 7u5 x86/x64 installed
JDK 6u33 x86 installed
JDK 7u5 x86 installed
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.