sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06950
Re: [Question #178933]: Java: How to use images captured with Sikuli IDE
Question #178933 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/178933
Status: Answered => Open
Anurag sharma is still having a problem:
how can i integrate sikuli with eclipse??
wht process i done to coplete the integrate i'll try to do it but i cudnt reach the final point
i work on win xp, sikuli-X 1.0rc5, eclipse helios 3.6
pls mention me abt the system n all the thing tht i follow..
i capture snap from sikuli-IDE it work but when i write it in eclipse it doesnt work
i write program :-
import org.sikuli.script.*;
public class sikuliproject {
public static void main(String[] args) {
Screen s = new Screen();
try{
s.hover("image.sikuli/1321439242218.png");
s.find("image.sikuli/1321439255546.png");
s.doubleClick("image.sikuli/1321439267640.png");
s.wait("image.sikuli/U1L11MLLI1KL.png", 5000);
s.find("image.sikuli/EhL1LMLI1LLQ.png");
s.find("image.sikuli/BHUTBQMicros.png");
s.doubleClick("image.sikuli/1321439584234.png");
s.wait("image.sikuli/uluMicrosoft.png", 5000);
s.find("image.sikuli/cMicrosoftWo.png");
s.find("image.sikuli/3fUf3g-1.png");
s.click("image.sikuli/ag-1.png");
s.type(null, "Key.SPACE", 0);
s.type(null, "Sharma\n", 0);
}
catch(FindFailed e){
e.printStackTrace();
}}}
the console show following error's now wht can i do-
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/awt/AWTUtilities
at org.sikuli.script.Win32Util.setWindowOpaque(Win32Util.java:84)
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 sikuliproject.main(sikuliproject.java:6)
[info] Windows utilities loaded.
pls explain me each step which i follow related to x path or eclipse
.........
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.